
        /* === 1. CONFIGURARE & VARIABILE === */
        :root {
            --primary: #15803d;
            --primary-dark: #14532d;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --bg-card: #ffffff;
            --radius: 16px;
        }

        #offer-calc {
            background-color: transparent;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 20px 0;
            color: var(--text-main);
        }

        #offer-calc * {
            box-sizing: border-box;
        }

        /* Crossfade for brand switch */
        @keyframes crossfade {
            0% {
                opacity: 1;
            }

            30% {
                opacity: 0.4;
                transform: scale(0.98);
            }

            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        #offer-calc .summary-card.crossfade {
            animation: crossfade 0.35s ease-out;
        }

        #offer-calc .main-container {
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: row;
            gap: 40px;
            align-items: flex-start;
            padding-bottom: 100px;
        }

        /* === CONFIGURATOR === */
        #offer-calc .config-area {
            flex: 1.5;
            background: transparent;
            padding: 20px 10px;
            border: none;
            min-width: 0;
        }

        #offer-calc h2 {
            font-size: 26px;
            font-weight: 800;
            margin: 0 0 8px 0;
            color: var(--text-main);
        }

        #offer-calc .subtitle {
            color: var(--text-muted);
            font-size: 14px;
            margin-bottom: 32px;
        }

        #offer-calc label {
            display: block;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        #offer-calc .form-group {
            margin-bottom: 28px;
        }

        /* --- TABURI MOD (eliminate) --- */

        /* Butoane Cards */
        #offer-calc .toggle-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 12px;
        }

        #offer-calc .toggle-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            color: var(--text-muted);
            font-weight: 600;
            font-size: 13px;
            text-align: center;
            min-height: 80px;
            position: relative;
        }

        @media (hover: hover) and (pointer: fine) {
            #offer-calc .toggle-btn:hover:not(.disabled) {
                transform: translateY(-2px);
            }
        }

        #offer-calc .toggle-btn:active:not(.disabled) {
            transform: scale(0.97);
        }

        #offer-calc .toggle-btn.selected {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
            box-shadow: 0 8px 16px -4px rgba(21, 128, 61, 0.3);
        }

        #offer-calc .toggle-btn.selected svg {
            stroke: white;
        }

        #offer-calc .toggle-btn.selected .shade-card-meta {
            color: rgba(255, 255, 255, 0.86);
        }

        #offer-calc .toggle-btn.shade-choice-btn {
            min-height: 72px;
            padding: 16px;
            justify-content: center;
            align-items: center;
            overflow: visible;
            z-index: 0;
        }

        #offer-calc #ui-shadePreset .toggle-btn:hover,
        #offer-calc #ui-shadePreset .toggle-btn:focus-within {
            z-index: 6;
        }

        #offer-calc .roi-info-icon.shade-choice-info {
            position: absolute;
            top: 8px;
            right: 8px;
            margin-left: 0;
            width: 15px;
            height: 15px;
            min-width: 15px;
            min-height: 15px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(20, 83, 45, 0.16);
            color: #14532d;
            font-size: 8px;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            font-weight: 700;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        #offer-calc .roi-info-icon.shade-choice-info:hover {
            background: #ffffff;
            border-color: rgba(20, 83, 45, 0.28);
            color: #14532d;
        }

        #offer-calc .toggle-btn.selected .roi-info-icon.shade-choice-info {
            background: rgba(255, 255, 255, 0.96);
            border-color: rgba(20, 83, 45, 0.2);
            color: #14532d;
        }

        #offer-calc .toggle-btn.selected .roi-info-icon.shade-choice-info:hover {
            background: #ffffff;
            border-color: rgba(20, 83, 45, 0.3);
        }

        #offer-calc .roi-info-icon.shade-choice-info .roi-tooltip {
            top: auto;
            bottom: calc(100% + 10px);
            width: min(220px, calc(100vw - 32px));
            max-width: calc(100vw - 32px);
            z-index: 40;
        }

        #offer-calc .roi-info-icon.shade-choice-info .roi-tooltip::after {
            top: 100%;
            bottom: auto;
            border-color: #064e3b transparent transparent transparent;
        }

        #offer-calc .toggle-btn svg {
            width: 24px;
            height: 24px;
            stroke: var(--text-muted);
            stroke-width: 2;
        }

        #offer-calc .toggle-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background-color: #f1f5f9;
            border-color: #e2e8f0;
            pointer-events: none;
        }

        /* Allow hover on disabled 590 panel for tooltip */
        #offer-calc .toggle-btn.disabled[data-val="590"] {
            pointer-events: auto;
            overflow: visible;
        }

        /* Hide 590 tooltip when panel is enabled */
        #offer-calc .toggle-btn[data-val="590"]:not(.disabled) .shade-tip {
            display: none;
        }

        #offer-calc .toggle-btn .shade-tip {
            position: absolute;
            left: 50%;
            bottom: calc(100% + 10px);
            transform: translateX(calc(-50% + var(--tooltip-shift-x, 0px))) translateY(4px);
            width: min(210px, calc(100vw - 32px));
            max-width: calc(100vw - 32px);
            background: #0f172a;
            color: #fff;
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 11px;
            line-height: 1.45;
            opacity: 0;
            pointer-events: none;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
            transition: opacity 0.15s ease, transform 0.15s ease;
            z-index: 20;
            text-transform: none;
            letter-spacing: normal;
            font-weight: 500;
        }

        #offer-calc .toggle-btn .shade-tip::after {
            content: '';
            position: absolute;
            left: var(--tooltip-arrow-left, 50%);
            top: 100%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: #0f172a;
        }

        #offer-calc .toggle-btn.tooltip-left .shade-tip,
        #offer-calc .orient-btn.tooltip-left .orient-tip {
            left: 0;
            right: auto;
            transform: none;
        }

        #offer-calc .toggle-btn.tooltip-left .shade-tip::after,
        #offer-calc .orient-btn.tooltip-left .orient-tip::after {
            left: var(--tooltip-arrow-left, 18px);
            right: auto;
            transform: none;
        }

        #offer-calc .toggle-btn.tooltip-right .shade-tip,
        #offer-calc .orient-btn.tooltip-right .orient-tip {
            left: auto;
            right: 0;
            transform: none;
        }

        #offer-calc .toggle-btn.tooltip-right .shade-tip::after,
        #offer-calc .orient-btn.tooltip-right .orient-tip::after {
            left: auto;
            right: var(--tooltip-arrow-right, 18px);
            transform: none;
        }

        #offer-calc .toggle-btn:hover .shade-tip {
            opacity: 1;
            transform: translateX(calc(-50% + var(--tooltip-shift-x, 0px))) translateY(0);
        }

        #offer-calc .toggle-btn.tooltip-left:hover .shade-tip,
        #offer-calc .toggle-btn.tooltip-left:focus-within .shade-tip,
        #offer-calc .orient-btn.tooltip-left:hover .orient-tip,
        #offer-calc .orient-btn.tooltip-left:focus-within .orient-tip {
            transform: translateY(0);
        }

        #offer-calc .toggle-btn.tooltip-right:hover .shade-tip,
        #offer-calc .toggle-btn.tooltip-right:focus-within .shade-tip,
        #offer-calc .orient-btn.tooltip-right:hover .orient-tip,
        #offer-calc .orient-btn.tooltip-right:focus-within .orient-tip {
            transform: translateY(0);
        }

        #offer-calc #ui-brand .toggle-btn {
            flex-direction: row;
            justify-content: center;
            font-size: 15px;
            padding: 20px;
            min-height: 60px;
        }

        /* Select Standard */
        #offer-calc select {
            width: 100%;
            padding: 14px 16px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-main);
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            appearance: none;
            cursor: pointer;
            outline: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 16px;
        }

        /* HP SECTION */
        #offer-calc .hp-details {
            margin-top: 14px;
            padding: 14px;
            background: var(--bg-input, #f8fafc);
            border-radius: 10px;
            border: 1px solid var(--border, #e2e8f0);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        #offer-calc .hp-sub-label {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
            margin-bottom: 6px;
            display: block;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        /* === CONSUMATORI SUPLIMENTARI === */
        #offer-calc .extra-wrap {
            border: 1.5px dashed #cbd5e1;
            border-radius: 12px;
            overflow: hidden;
            transition: border-color 0.26s ease, box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease;
        }

        #offer-calc .extra-wrap.open {
            overflow: visible;
        }

        #offer-calc .extra-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 13px 16px;
            cursor: pointer;
            background: #f8fafc;
            user-select: none;
            border-radius: 10px;
            transition: background 0.28s ease, border-radius 0.32s ease, box-shadow 0.32s ease;
        }

        #offer-calc .extra-header:hover {
            background: #f1f5f9;
        }

        #offer-calc .extra-wrap.open .extra-header {
            border-radius: 10px 10px 0 0;
        }

        #offer-calc .extra-title {
            font-size: 13px;
            font-weight: 600;
            color: #475569;
            flex: 1;
        }

        #offer-calc .extra-active-badge {
            font-size: 11px;
            font-weight: 600;
            background: #dcfce7;
            color: #15803d;
            padding: 2px 9px;
            border-radius: 20px;
            display: none;
        }

        #offer-calc .extra-arrow {
            color: #94a3b8;
            transition: transform 0.25s;
            flex-shrink: 0;
        }

        #offer-calc .extra-wrap.open .extra-arrow {
            transform: rotate(180deg);
        }

        #offer-calc .extra-body {
            display: flex;
            flex-direction: column;
            gap: 0;
            height: 0;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            overflow: hidden;
            transform: translateY(-10px);
            will-change: height, opacity, transform;
            border-top: 1px solid rgba(226, 232, 240, 0);
            transition:
                height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.22s ease,
                transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.28s ease,
                visibility 0s linear 0.48s;
        }

        #offer-calc .extra-body.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
            transition:
                height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.32s ease 0.04s,
                transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.28s ease,
                visibility 0s linear 0s;
        }

        #offer-calc .extra-wrap.open .extra-body {
            border-top-color: #e2e8f0;
        }

        #offer-calc .extra-body>* {
            opacity: 0;
            transform: translateY(-8px);
            transition: opacity 0.24s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
        }

        #offer-calc .extra-body.open>* {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.06s;
        }

        #offer-calc .panel-settings-wrap {
            border-style: solid;
            border-color: #e2e8f0;
            background: #fff;
        }

        #offer-calc .panel-settings-header {
            align-items: flex-start;
            background: #fbfcfd;
        }

        #offer-calc .panel-settings-header:hover {
            background: #f8fafc;
        }

        #offer-calc .panel-settings-copy {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        #offer-calc .panel-settings-summary {
            font-size: 11px;
            font-weight: 500;
            color: #64748b;
            line-height: 1.35;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #offer-calc .panel-settings-body {
            background: #fff;
        }

        #offer-calc .panel-settings-section {
            padding: 16px;
        }

        #offer-calc .panel-settings-section+.panel-settings-section {
            border-top: 1px solid #f1f5f9;
        }

        #offer-calc .extra-item {
            padding: 14px 16px;
            border-bottom: 1px solid #f1f5f9;
        }

        #offer-calc .extra-item:last-child {
            border-bottom: none;
        }

        #offer-calc .extra-item label {
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 10px;
            display: block;
        }

        #offer-calc .hp-info-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(21, 128, 61, 0.08);
            border: 1px solid rgba(21, 128, 61, 0.18);
            color: var(--primary, #15803d);
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 12px;
            font-weight: 500;
            margin-top: 4px;
        }

        #offer-calc .hp-info-icon {
            width: 18px;
            height: 18px;
            border-radius: 999px;
            border: 1.5px solid currentColor;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            background: #ffffff;
            flex-shrink: 0;
        }

        #offer-calc .pvgis-details-card {
            margin-top: 12px;
            border: 1px solid #dbe5ef;
            border-radius: 14px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            overflow: hidden;
            font-size: 13px;
            color: #0f172a;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
        }

        #offer-calc .pvgis-details-header {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            cursor: pointer;
            background: transparent;
            padding: 14px 16px;
            border: none;
            text-align: left;
            user-select: none;
        }

        #offer-calc .pvgis-details-header:hover {
            background: rgba(248, 250, 252, 0.9);
        }

        #offer-calc .pvgis-header-copy {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

        #offer-calc .pvgis-eyebrow {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #64748b;
        }

        #offer-calc .pvgis-header-title {
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
        }

        #offer-calc .pvgis-header-subtitle {
            font-size: 12px;
            line-height: 1.45;
            color: #64748b;
        }

        #offer-calc .pvgis-header-side {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        #offer-calc .pvgis-state-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 88px;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            border: 1px solid transparent;
            background: #e2e8f0;
            color: #334155;
        }

        #offer-calc .pvgis-state-badge.is-idle,
        #offer-calc .pvgis-state-badge.is-typing {
            background: #f8fafc;
            color: #475569;
            border-color: #cbd5e1;
        }

        #offer-calc .pvgis-state-badge.is-loading {
            background: #eff6ff;
            color: #1d4ed8;
            border-color: #bfdbfe;
        }

        #offer-calc .pvgis-state-badge.is-success {
            background: #ecfdf5;
            color: #166534;
            border-color: #bbf7d0;
        }

        #offer-calc .pvgis-state-badge.is-error {
            background: #fef2f2;
            color: #b91c1c;
            border-color: #fecaca;
        }

        #offer-calc .pvgis-expand-icon,
        #offer-calc #pvgisExpandIcon {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            border: 1px solid #dbe5ef;
            color: #0f172a;
            font-size: 17px;
            font-weight: 500;
        }

        #offer-calc .pvgis-details-card.open .pvgis-expand-icon,
        #offer-calc .pvgis-details-card.open #pvgisExpandIcon {
            background: #0f172a;
            color: #ffffff;
            border-color: #0f172a;
        }

        #offer-calc .pvgis-details-body {
            display: none;
            flex-direction: column;
            gap: 12px;
            padding: 0 16px 16px;
        }

        #offer-calc .pvgis-details-card.open .pvgis-details-body {
            display: flex;
        }

        #offer-calc .pvgis-status {
            font-size: 12px;
            line-height: 1.5;
            font-weight: 600;
            border-radius: 12px;
            padding: 10px 12px;
            border: 1px solid #dbe5ef;
            background: #f8fafc;
            color: #334155;
        }

        #offer-calc .pvgis-status.is-idle,
        #offer-calc .pvgis-status.is-typing {
            background: #f8fafc;
            border-color: #dbe5ef;
            color: #475569;
        }

        #offer-calc .pvgis-status.is-loading {
            background: #eff6ff;
            border-color: #bfdbfe;
            color: #1d4ed8;
        }

        #offer-calc .pvgis-status.is-success {
            background: #f0fdf4;
            border-color: #bbf7d0;
            color: #166534;
        }

        #offer-calc .pvgis-status.is-error {
            background: #fef2f2;
            border-color: #fecaca;
            color: #b91c1c;
        }

        #offer-calc .pvgis-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
        }

        #offer-calc .pvgis-mini-card,
        #offer-calc .pvgis-request-block,
        #offer-calc .pvgis-orientation-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
        }

        #offer-calc .pvgis-mini-card {
            padding: 12px;
        }

        #offer-calc .pvgis-mini-label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #64748b;
            margin-bottom: 6px;
        }

        #offer-calc .pvgis-mini-value {
            font-size: 13px;
            line-height: 1.5;
            color: #0f172a;
            word-break: break-word;
        }

        #offer-calc .pvgis-request-block {
            padding: 12px;
        }

        #offer-calc .pvgis-section-title {
            display: block;
            font-size: 12px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 8px;
        }

        #offer-calc .pvgis-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        #offer-calc .pvgis-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 10px;
            border-radius: 999px;
            background: #f8fafc;
            border: 1px solid #dbe5ef;
            color: #334155;
            font-size: 12px;
            line-height: 1.3;
        }

        #offer-calc .pvgis-chip .roi-info-icon {
            margin-left: 2px;
        }

        #offer-calc .pvgis-orientation-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        #offer-calc .pvgis-orientation-card {
            padding: 14px;
        }

        #offer-calc .pvgis-orientation-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        #offer-calc .pvgis-orientation-title {
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
        }

        #offer-calc .pvgis-orientation-meta {
            margin-top: 4px;
            font-size: 12px;
            color: #64748b;
            line-height: 1.45;
        }

        #offer-calc .pvgis-orientation-yield {
            padding: 8px 10px;
            border-radius: 10px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            color: #166534;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
        }

        #offer-calc .pvgis-metric-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 8px;
        }

        #offer-calc .pvgis-metric {
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #f8fafc;
            padding: 10px;
        }

        #offer-calc .pvgis-metric-label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            color: #64748b;
            margin-bottom: 6px;
        }

        #offer-calc .pvgis-metric-value {
            font-size: 12px;
            line-height: 1.45;
            color: #0f172a;
            word-break: break-word;
        }

        @media (max-width: 640px) {

            #offer-calc .pvgis-details-header,
            #offer-calc .pvgis-orientation-head {
                flex-direction: column;
                align-items: flex-start;
            }

            #offer-calc .pvgis-header-side {
                width: 100%;
                justify-content: space-between;
            }

            #offer-calc .pvgis-orientation-yield {
                white-space: normal;
            }
        }

        #offer-calc .hp-power-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        #offer-calc .hp-power-stepper {
            display: flex;
            align-items: center;
            gap: 0;
            background: var(--bg-card, #fff);
            border: 1px solid var(--border, #e2e8f0);
            border-radius: 8px;
            overflow: hidden;
        }

        #offer-calc .hp-power-stepper button {
            background: none;
            border: none;
            width: 36px;
            height: 36px;
            font-size: 18px;
            cursor: pointer;
            color: var(--primary, #15803d);
            transition: background 0.15s;
            flex-shrink: 0;
        }

        #offer-calc .hp-power-stepper button:hover {
            background: rgba(21, 128, 61, 0.07);
        }

        #offer-calc .hp-power-val {
            min-width: 44px;
            text-align: center;
            font-weight: 700;
            font-size: 15px;
        }

        #offer-calc .hp-power-unit {
            font-size: 13px;
            color: var(--text-muted);
        }

        /* WIDGETS (Battery, Inverter) */
        #offer-calc .battery-widget,
        #offer-calc .inverter-widget {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
        }

        #offer-calc .battery-display,
        #offer-calc .inverter-display {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            text-align: center;
        }

        #offer-calc .battery-name,
        #offer-calc .inverter-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
        }

        #offer-calc .battery-icon,
        #offer-calc .inverter-icon {
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #offer-calc .battery-icon {
            color: var(--text-muted);
        }

        #offer-calc .inverter-icon {
            color: var(--primary);
            height: 36px;
        }

        #offer-calc .battery-btn,
        #offer-calc .inverter-btn {
            width: 44px;
            height: 44px;
            border-radius: 8px;
            border: none;
            background: #f1f5f9;
            color: var(--text-main);
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        @media (hover: hover) and (pointer: fine) {

            #offer-calc .battery-btn:hover:not(.disabled),
            #offer-calc .inverter-btn:hover:not(.disabled) {
                transform: translateY(-1px);
            }
        }

        #offer-calc .battery-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: #f8fafc;
            pointer-events: none;
        }

        #offer-calc .inverter-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: #f8fafc;
        }

        /* === PILL STRIP SELECTOR (reuses toggle-btn visual style) === */
        #offer-calc .pill-strip-track {
            display: grid;
            grid-template-columns: repeat(var(--pill-count, 5), 1fr);
            gap: 8px;
        }

        #offer-calc .pill-indicator {
            display: none;
        }

        #offer-calc .pill-unit {
            display: none;
        }

        #offer-calc .pill-item {
            /* Inherit toggle-btn base look */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            padding: 12px 4px;
            min-height: 52px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            user-select: none;
            font-weight: 600;
            font-size: 14px;
            text-align: center;
            /* Same visual as toggle-btn */
            border-radius: var(--radius-md);
            border: 1px solid var(--border-soft);
            background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
            box-shadow: var(--shadow-soft);
            color: var(--ink-soft);
        }

        #offer-calc .pill-item .pill-item-unit {
            font-size: 10px;
            font-weight: 500;
            opacity: 0.6;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        #offer-calc .pill-item.none-pill:not(.selected) {
            color: #94a3b8;
            font-style: italic;
        }

        #offer-calc .pill-detail {
            text-align: center;
            padding: 10px 0 0;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
            min-height: 24px;
        }

        #offer-calc .pill-detail .pill-detail-sub {
            font-weight: 500;
            color: var(--text-muted);
            font-size: 12px;
        }

        /* Compact mode for many pills (trifazat 7+) */
        #offer-calc .pill-strip.pill-compact .pill-strip-track {
            gap: 6px;
        }

        #offer-calc .pill-strip.pill-compact .pill-item {
            padding: 10px 2px;
            font-size: 13px;
            min-height: 46px;
        }

        #offer-calc .pill-strip.pill-commercial-layout .pill-strip-track {
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 10px;
        }

        #offer-calc .pill-strip.pill-commercial-layout .pill-item {
            padding: 12px 6px;
            min-height: 54px;
        }

        #offer-calc .pill-strip.pill-battery-grid-layout .pill-strip-track {
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 10px;
        }

        #offer-calc .pill-strip.pill-battery-grid-layout .pill-item {
            padding: 12px 6px;
            min-height: 54px;
        }

        @media (max-width: 1180px) {
            #offer-calc .pill-strip.pill-commercial-layout .pill-strip-track {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }

            #offer-calc .pill-strip.pill-battery-grid-layout .pill-strip-track {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }

        @media (max-width: 860px) {
            #offer-calc .pill-strip.pill-commercial-layout .pill-strip-track {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            #offer-calc .pill-strip.pill-battery-grid-layout .pill-strip-track {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        @media (max-width: 640px) {
            #offer-calc .pill-strip-track {
                gap: 6px;
            }

            #offer-calc .pill-item {
                padding: 10px 2px;
                font-size: 13px;
                min-height: 46px;
            }

            #offer-calc .pill-strip.pill-compact .pill-item {
                padding: 8px 2px;
                font-size: 11px;
                min-height: 40px;
            }

            #offer-calc .pill-strip.pill-commercial-layout .pill-strip-track {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            #offer-calc .pill-strip.pill-commercial-layout .pill-item {
                padding: 10px 4px;
                font-size: 12px;
                min-height: 44px;
            }

            #offer-calc .pill-strip.pill-battery-grid-layout .pill-strip-track {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            #offer-calc .pill-strip.pill-battery-grid-layout .pill-item {
                padding: 10px 4px;
                font-size: 12px;
                min-height: 44px;
            }
        }

        /* INVERTER ERROR MSG */
        #offer-calc .inv-limit-msg {
            font-size: 12px;
            color: #ef4444;
            background: #fef2f2;
            border: 1px solid #fecaca;
            padding: 8px 12px;
            border-radius: 8px;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-5px);
            position: absolute;
            pointer-events: none;
            width: calc(100% - 20px);
        }

        #offer-calc .inv-limit-msg.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            position: relative;
            width: 100%;
        }

        /* STEPPER */
        #offer-calc .stepper-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 6px;
        }

        #offer-calc .stepper-btn {
            width: 44px;
            height: 44px;
            border-radius: 8px;
            border: none;
            background: #f1f5f9;
            color: var(--text-main);
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
        }

        #offer-calc .stepper-btn:hover {
            background: #e2e8f0;
        }

        #offer-calc .stepper-val {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-main);
            min-width: 50px;
            text-align: center;
        }

        #offer-calc .stepper-icon {
            margin-right: auto;
            margin-left: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: #94a3b8;
        }

        /* SUMAR */
        #offer-calc .summary-sticky-wrapper {
            flex: 1;
            position: sticky;
            top: 8px;
            align-self: flex-start;
            z-index: 10;
        }

        #offer-calc .summary-card {
            background: linear-gradient(145deg, #14532d 0%, #064e3b 100%);
            color: white;
            padding: 16px 18px;
            border-radius: var(--radius);
            box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        #offer-calc .summary-card.is-dense {
            padding: 13px 14px;
        }

        #offer-calc .sum-header {
            margin-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            padding-bottom: 8px;
        }

        #offer-calc .summary-card.is-dense .sum-header {
            margin-bottom: 6px;
            padding-bottom: 6px;
        }

        #offer-calc .sum-title {
            font-size: 17px;
            font-weight: 700;
            margin-bottom: 2px;
            display: block;
        }

        #offer-calc .summary-card.is-dense .sum-title {
            font-size: 16px;
        }

        #offer-calc .sum-subtitle {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 500;
            letter-spacing: 0.03em;
        }

        #offer-calc .kwp-badge {
            display: inline-block;
            background: linear-gradient(135deg, rgba(134, 239, 172, 0.25), rgba(74, 222, 128, 0.15));
            color: #86efac;
            font-size: 12px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 6px;
            margin-left: 6px;
            vertical-align: middle;
            letter-spacing: 0.02em;
            border: 1px solid rgba(134, 239, 172, 0.2);
        }

        /* SVG icons in summary list */
        #offer-calc .csl-icon {
            width: 14px;
            height: 14px;
            opacity: 0.5;
            flex-shrink: 0;
            margin-right: 5px;
            vertical-align: middle;
        }

        #offer-calc .csl-label {
            display: flex;
            align-items: center;
            color: #94a3b8;
        }

        /* Slide-in animation for value changes */
        @keyframes slideInValue {
            0% {
                opacity: 0;
                transform: translateY(-6px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #offer-calc .slide-in {
            animation: slideInValue 0.25s ease-out;
        }

        #offer-calc .compact-summary-list {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-bottom: 8px;
            padding-top: 2px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.85);
        }

        #offer-calc .summary-card.is-dense .compact-summary-list {
            gap: 1px;
            margin-bottom: 6px;
            font-size: 12px;
        }

        #offer-calc .csl-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
            padding: 1px 6px;
            border-radius: 6px;
            margin: 0 -6px;
        }

        #offer-calc .summary-card.is-dense .csl-item {
            padding: 0 4px;
            margin: 0 -4px;
        }

        #offer-calc .csl-item:hover {
            background: rgba(255, 255, 255, 0.06);
        }

        #offer-calc .csl-item:last-child {
            border-bottom: none;
        }

        #offer-calc .roi-separator {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.3), transparent);
            margin: 4px 0 16px 0;
        }

        #offer-calc .summary-card.is-dense .roi-separator {
            margin: 3px 0 10px 0;
        }

        /* Advanced Settings ROI */
        #offer-calc .roi-advanced-toggle {
            font-size: 11px;
            color: #86efac;
            text-decoration: underline;
            cursor: pointer;
            margin-top: 10px;
            display: inline-block;
            opacity: 0.8;
        }

        #offer-calc .roi-advanced-toggle:hover {
            opacity: 1;
        }

        #offer-calc .roi-advanced-panel {
            box-sizing: border-box;
            height: 0;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-8px);
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed rgba(255, 255, 255, 0.1);
            will-change: height, opacity, transform;
            transition:
                height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.22s ease,
                transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0.42s,
                margin-top 0.32s ease,
                padding 0.32s ease,
                box-shadow 0.32s ease,
                border-color 0.28s ease,
                background 0.32s ease;
        }

        #offer-calc .roi-advanced-panel.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
            transition:
                height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease 0.04s,
                transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0s,
                margin-top 0.32s ease,
                padding 0.32s ease,
                box-shadow 0.32s ease,
                border-color 0.28s ease,
                background 0.32s ease;
        }

        #offer-calc .adv-input-group {
            margin-bottom: 10px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        #offer-calc .adv-input-group label {
            font-size: 10px;
            color: #cbd5e1;
            margin: 0;
            text-transform: none;
            letter-spacing: normal;
        }

        #offer-calc .adv-input-group input {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 8px 10px;
            border-radius: 6px;
            font-size: 12px;
            outline: none;
            width: 100%;
        }

        #offer-calc .adv-input-group input:focus {
            border-color: #86efac;
        }

        /* ROI Block */
        #offer-calc .roi-block {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 10px 12px;
            margin-bottom: 10px;
            border: 1px dashed rgba(255, 255, 255, 0.2);
        }

        #offer-calc .summary-card.is-dense .roi-block {
            padding: 8px 10px;
            margin-bottom: 8px;
        }

        #offer-calc .roi-block:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(134, 239, 172, 0.5);
        }

        #offer-calc .roi-header {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #86efac;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        #offer-calc .summary-card.is-dense .roi-header {
            gap: 6px;
            font-size: 12px;
            margin-bottom: 3px;
        }

        #offer-calc .roi-value {
            font-size: 20px;
            font-weight: 800;
            color: #fff;
            line-height: 1;
            margin-bottom: 4px;
        }

        #offer-calc .summary-card.is-dense .roi-value {
            font-size: 18px;
            margin-bottom: 3px;
        }

        #offer-calc .roi-sub {
            font-size: 11px;
            color: #cbd5e1;
            line-height: 1.4;
        }

        #offer-calc .summary-card.is-dense .roi-sub {
            font-size: 10px;
            line-height: 1.32;
        }

        /* Heartbeat Pulse */
        @keyframes drawPulse {
            0% {
                stroke-dashoffset: 60;
            }

            100% {
                stroke-dashoffset: 0;
            }
        }

        @keyframes heartbeat {
            0% {
                transform: scale(1);
            }

            10% {
                transform: scale(1.15);
            }

            20% {
                transform: scale(1);
            }

            100% {
                transform: scale(1);
            }
        }

        #offer-calc .roi-pulse-icon {
            width: 18px;
            height: 18px;
            overflow: visible;
            animation: heartbeat 2s infinite ease-in-out;
            color: #4ade80;
        }

        #offer-calc .roi-pulse-icon polyline {
            stroke-dasharray: 60;
            stroke-dashoffset: 60;
            animation: drawPulse 2s infinite linear;
            stroke-width: 2.5;
        }

        /* Tooltip ROI Info */
        #offer-calc .roi-info-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
            font-size: 10px;
            font-family: monospace;
            cursor: help;
            margin-left: 6px;
            position: relative;
            z-index: 1;
        }

        #offer-calc .roi-info-icon:hover {
            background: rgba(255, 255, 255, 0.3);
            z-index: 180;
        }

        #offer-calc .roi-tooltip {
            position: absolute;
            top: calc(100% + 12px);
            left: 50%;
            transform: translateX(calc(-50% + var(--tooltip-shift-x, 0px)));
            background: linear-gradient(145deg, #14532d 0%, #064e3b 100%);
            color: #fff;
            padding: 14px 18px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 500;
            width: min(330px, calc(100vw - 32px));
            max-width: calc(100vw - 32px);
            text-transform: none;
            letter-spacing: normal;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0;
            visibility: hidden;
            z-index: 20;
            pointer-events: none;
        }

        /* Config-info tooltips: full-width on mobile, absolute positioning */
        @media (max-width: 640px) {

            #offer-calc .config-info-icon.open .roi-tooltip,
            #offer-calc .config-info-icon:focus-within .roi-tooltip {
                left: 0 !important;
                right: auto !important;
                width: calc(100vw - 56px) !important;
                max-width: calc(100vw - 32px) !important;
                transform: translateX(calc(-50% + var(--tooltip-shift-x, 0px))) !important;
                z-index: 9999;
            }
        }

        #offer-calc .roi-tooltip::after {
            content: '';
            position: absolute;
            bottom: 100%;
            left: var(--tooltip-arrow-left, 50%);
            transform: translateX(-50%);
            border-width: 6px;
            border-style: solid;
            border-color: transparent transparent #064e3b transparent;
        }

        #offer-calc .roi-info-icon:hover .roi-tooltip {
            opacity: 1;
            visibility: visible;
        }

        #offer-calc .roi-info-icon.open .roi-tooltip,
        #offer-calc .roi-info-icon:focus-within .roi-tooltip {
            opacity: 1;
            visibility: visible;
        }

        #offer-calc .roi-info-icon.open,
        #offer-calc .roi-info-icon:focus-within {
            z-index: 180;
        }

        #offer-calc .roi-info-icon.tooltip-left .roi-tooltip {
            left: 0;
            right: auto;
            transform: none;
        }

        #offer-calc .roi-info-icon.tooltip-left .roi-tooltip::after {
            left: var(--tooltip-arrow-left, 11px);
            right: auto;
            transform: none;
        }

        #offer-calc .roi-info-icon.tooltip-right .roi-tooltip {
            left: auto;
            right: 0;
            transform: none;
        }

        #offer-calc .roi-info-icon.tooltip-right .roi-tooltip::after {
            left: auto;
            right: var(--tooltip-arrow-right, 11px);
            transform: none;
        }

        #offer-calc .pvgis-label-row {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        #offer-calc .pvgis-mini-label .roi-info-icon,
        #offer-calc .pvgis-metric-label .roi-info-icon,
        #offer-calc .pvgis-chip .roi-info-icon,
        #offer-calc .pvgis-orientation-meta .roi-info-icon {
            width: 12px !important;
            height: 12px !important;
            min-width: 12px;
            min-height: 12px;
            margin-left: 0 !important;
            background: #64748b !important;
            color: #fff !important;
            font-size: 7px !important;
            line-height: 1 !important;
            flex-shrink: 0;
            text-transform: none !important;
            letter-spacing: normal !important;
            font-family: Arial, sans-serif !important;
        }

        #offer-calc .pvgis-mini-label .roi-info-icon:hover,
        #offer-calc .pvgis-metric-label .roi-info-icon:hover,
        #offer-calc .pvgis-chip .roi-info-icon:hover,
        #offer-calc .pvgis-orientation-meta .roi-info-icon:hover {
            background: #475569;
        }

        #offer-calc .pvgis-label-row .roi-tooltip,
        #offer-calc .pvgis-chip .roi-tooltip,
        #offer-calc .pvgis-orientation-meta .roi-tooltip {
            width: min(260px, calc(100vw - 32px));
            max-width: calc(100vw - 32px);
            text-transform: none;
        }

        /* Preturi */
        #offer-calc .row-price {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 14px;
            color: #cbd5e1;
        }

        #offer-calc .total-block {
            margin-top: auto;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        #offer-calc .total-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        #offer-calc .t-label {
            font-size: 14px;
            font-weight: 500;
            color: #cbd5e1;
        }

        #offer-calc .t-val {
            font-size: 28px;
            font-weight: 800;
            color: #fff;
            line-height: 1;
        }

        #offer-calc .legal-text {
            font-size: 11px;
            opacity: 0.7;
            text-align: center;
            margin-top: 12px;
            line-height: 1.4;
        }

        #offer-calc .summary-card.is-dense .legal-text {
            font-size: 10px;
            margin-top: 8px;
            line-height: 1.3;
        }

        #offer-calc .summary-card.is-dense .t-label {
            font-size: 13px;
        }

        #offer-calc .summary-card.is-dense .t-val {
            font-size: 24px;
        }

        #offer-calc .summary-card.is-dense .call-btn-summary {
            padding: 10px 10px !important;
            margin-top: 10px !important;
            font-size: 13px !important;
        }

        #offer-calc .summary-card.is-dense #btnDownloadPdf {
            padding: 10px 10px !important;
            margin-top: 8px !important;
            font-size: 13px !important;
        }

        #offer-calc .chart-status-badge {
            display: inline-flex;
            align-items: flex-start;
            gap: 8px;
            margin-top: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 600;
            text-transform: none;
            letter-spacing: normal;
            line-height: 1.4;
        }

        #offer-calc .chart-status-badge.is-danger {
            color: #dc2626;
            background: #fef2f2;
            border: 1px solid rgba(220, 38, 38, 0.25);
        }

        #offer-calc .chart-status-badge.is-info {
            color: #2563eb;
            background: #eff6ff;
            border: 1px solid rgba(37, 99, 235, 0.22);
        }

        #offer-calc .chart-status-badge.is-success {
            color: #166534;
            background: #f0fdf4;
            border: 1px solid rgba(22, 101, 52, 0.18);
        }

        #offer-calc .chart-status-icon {
            width: 18px;
            height: 18px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 1px;
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            color: #fff;
        }

        #offer-calc .chart-status-badge.is-danger .chart-status-icon {
            background: #dc2626;
        }

        #offer-calc .chart-status-badge.is-info .chart-status-icon {
            background: #2563eb;
        }

        #offer-calc .chart-status-badge.is-success .chart-status-icon {
            background: #166534;
        }

        /* === BUTON APELARE IN SUMAR === */
        /* === BUTOANE APELARE (DOAR MOBIL) === */

        /* 1. Ascundem butoanele implicit pe Desktop si Tablete */
        #offer-calc .call-btn-summary,
        #offer-calc .msf-call-btn {
            display: none;
        }

        /* 2. Le afisam DOAR pe telefoane (ecrane sub 768px) cu dimensiuni reduse */
        @media (max-width: 768px) {
            #offer-calc .call-btn-summary {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                background: #ffffff;
                color: #14532d;
                text-decoration: none;
                padding: 12px 10px;
                border-radius: 10px;
                font-size: 14px;
                font-weight: 800;
                margin-top: 16px;
                box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
                width: 100%;
                white-space: nowrap;
            }

            #offer-calc .call-btn-summary:active {
                background: #f0fdf4;
                transform: translateY(2px);
            }

            #offer-calc .call-btn-summary svg {
                width: 18px;
                height: 18px;
                fill: none;
                stroke: currentColor;
                stroke-width: 2;
                stroke-linecap: round;
                stroke-linejoin: round;
                flex-shrink: 0;
            }

            /* Butonul mic din bara lipicioasa (Sticky Footer) */
            #offer-calc .msf-call-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                background: #ffffff;
                color: #14532d;
                width: 42px;
                height: 42px;
                border-radius: 10px;
                text-decoration: none;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
                margin-left: 12px;
                flex-shrink: 0;
            }

            #offer-calc .msf-call-btn:active {
                transform: scale(0.95);
                background: #f0fdf4;
            }

            #offer-calc .msf-call-btn svg {
                width: 18px;
                height: 18px;
                fill: none;
                stroke: currentColor;
                stroke-width: 2;
                stroke-linecap: round;
                stroke-linejoin: round;
            }
        }

        /* Mobile Sticky Footer */
        #offer-calc .mobile-sticky-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(145deg, #14532d 0%, #064e3b 100%);
            padding: 12px 20px 10px;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transform: translateY(120%);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: none;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
        }

        #offer-calc .mobile-sticky-footer.visible {
            transform: translateY(0);
        }

        #offer-calc .msf-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            gap: 8px;
            overflow: hidden;
        }

        #offer-calc .msf-label-col {
            display: flex;
            flex-direction: column;
            min-width: 0;
            flex-shrink: 1;
        }

        #offer-calc .msf-label {
            font-size: 13px;
            font-weight: 600;
            color: #86efac;
            margin-bottom: 2px;
        }

        #offer-calc .msf-sub {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.7);
        }

        #offer-calc .msf-val-wrap {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        #offer-calc .msf-val {
            font-size: 20px;
            font-weight: 800;
            color: #fff;
            line-height: 1;
        }

        /* ── Mobile Expand Panel ── */
        #offer-calc .msf-toggle-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.12);
            border: none;
            color: #86efac;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            margin-left: 10px;
            cursor: pointer;
            flex-shrink: 0;
            transition: background 0.2s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        #offer-calc .msf-toggle-btn:active {
            background: rgba(255, 255, 255, 0.2);
        }

        #offer-calc .mobile-sticky-footer.msf-open .msf-toggle-btn {
            transform: rotate(180deg);
        }

        #offer-calc .msf-expand-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        #offer-calc .mobile-sticky-footer.msf-open .msf-expand-panel {
            max-height: 70vh;
            transition: max-height 0.4s cubic-bezier(0.33, 1, 0.68, 1);
        }

        #offer-calc .msf-expand-inner {
            padding: 8px 4px 12px;
            border-bottom: 1px solid rgba(134, 239, 172, 0.2);
            margin-bottom: 6px;
            max-height: 55vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        #offer-calc .msf-expand-inner::-webkit-scrollbar {
            width: 4px;
        }

        #offer-calc .msf-expand-inner::-webkit-scrollbar-thumb {
            background: rgba(134, 239, 172, 0.3);
            border-radius: 4px;
        }

        /* Summary items inside expand panel */
        #offer-calc .msf-expand-inner .csl-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
            padding: 5px 6px;
            border-radius: 6px;
            margin: 0 -6px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.85);
        }

        #offer-calc .msf-expand-inner .csl-item:last-child {
            border-bottom: none;
        }

        #offer-calc .msf-expand-inner .csl-icon {
            width: 14px;
            height: 14px;
            margin-right: 6px;
            vertical-align: -2px;
            stroke: #86efac;
        }

        #offer-calc .msf-expand-inner .csl-label {
            color: rgba(255, 255, 255, 0.6);
            font-size: 12px;
            white-space: nowrap;
        }

        /* ROI section inside expand */
        #offer-calc .msf-roi-block {
            margin-top: 8px;
            padding: 8px 10px;
            background: rgba(134, 239, 172, 0.08);
            border-radius: 10px;
            border: 1px solid rgba(134, 239, 172, 0.15);
        }

        #offer-calc .msf-roi-header {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 600;
            color: #86efac;
            margin-bottom: 4px;
        }

        #offer-calc .msf-roi-header svg {
            width: 14px;
            height: 14px;
            stroke: #86efac;
        }

        #offer-calc .msf-roi-value {
            font-size: 18px;
            font-weight: 800;
            color: #fff;
        }

        #offer-calc .msf-roi-details {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 2px;
            line-height: 1.4;
        }

        @media (max-width: 900px) {
            #offer-calc .main-container {
                grid-template-columns: 1fr;
                gap: 24px;
                flex-direction: column;
                padding-bottom: 90px;
            }

            #offer-calc .summary-card {
                position: static;
                order: 2;
                scroll-snap-align: start;
            }

            #offer-calc .config-area {
                order: 1;
                padding: 0;
            }

            #offer-calc .summary-sticky-wrapper {
                width: 100%;
                order: 2;
                scroll-snap-type: y mandatory;
            }

            #offer-calc .mobile-sticky-footer {
                display: block;
            }
        }

        @media (max-width: 400px) {
            #offer-calc .toggle-grid {
                grid-template-columns: 1fr;
            }

            #offer-calc #ui-brand .toggle-btn {
                padding: 14px;
                font-size: 14px;
            }

            #offer-calc .t-val {
                font-size: 20px;
            }

            #offer-calc .row-price {
                font-size: 12px;
                gap: 4px;
            }

            #offer-calc .row-price span:last-child {
                white-space: nowrap;
                text-align: right;
                flex-shrink: 0;
            }

            #offer-calc .msf-val {
                font-size: 16px;
            }

            #offer-calc .total-row {
                flex-wrap: wrap;
                gap: 2px;
            }

            #offer-calc .t-label {
                font-size: 12px;
            }

            #offer-calc .mobile-sticky-footer {
                padding: 10px 12px 8px;
            }

            #offer-calc .msf-call-btn {
                width: 36px;
                height: 36px;
                margin-left: 8px;
            }

            #offer-calc .msf-label {
                font-size: 11px;
            }

            #offer-calc .msf-sub {
                font-size: 10px;
            }
        }

        @media (max-width: 340px) {
            #offer-calc .t-val {
                font-size: 18px;
            }

            #offer-calc .msf-val {
                font-size: 14px;
            }

            #offer-calc .msf-call-btn {
                width: 32px;
                height: 32px;
                margin-left: 6px;
                border-radius: 8px;
            }
        }

        #offer-calc .msf-sys-info {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 1px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }

        @media (min-width: 900px) {
            #offer-calc .summary-sticky-wrapper {
                position: sticky;
                top: 8px;
                flex: 1;
                z-index: 10;
                align-self: flex-start;
            }
        }

        /* === ORIENTARE PANOURI === */
        #offer-calc .orient-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        #offer-calc .orient-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 14px 8px;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            color: var(--text-muted);
            font-weight: 600;
            font-size: 13px;
            text-align: center;
            min-height: 70px;
            position: relative;
        }

        @media (hover: hover) and (pointer: fine) {
            #offer-calc .orient-btn:hover {
                transform: translateY(-2px);
            }
        }

        #offer-calc .orient-btn.selected {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
            box-shadow: 0 8px 16px -4px rgba(21, 128, 61, 0.3);
        }

        #offer-calc .orient-btn.selected svg {
            stroke: white;
        }

        #offer-calc .orient-btn svg {
            width: 22px;
            height: 22px;
            stroke: var(--text-muted);
            stroke-width: 2;
        }

        #offer-calc .orient-btn .orient-eff {
            font-size: 10px;
            font-weight: 500;
            opacity: 0.7;
        }

        #offer-calc .orient-btn.selected .orient-eff {
            opacity: 0.9;
        }

        #offer-calc .orient-btn .orient-tip {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(calc(-50% + var(--tooltip-shift-x, 0px)));
            background: #1e293b;
            color: #fff;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 500;
            width: min(200px, calc(100vw - 32px));
            max-width: calc(100vw - 32px);
            text-align: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            z-index: 20;
            line-height: 1.4;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        #offer-calc .orient-btn .orient-tip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: var(--tooltip-arrow-left, 50%);
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: #1e293b transparent transparent transparent;
        }

        #offer-calc .orient-btn:hover .orient-tip {
            opacity: 1;
            visibility: visible;
        }

        #offer-calc .orient-split-wrap {
            margin-top: 16px;
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transition: max-height 0.4s ease, opacity 0.3s ease;
        }

        #offer-calc .orient-split-wrap.open {
            max-height: 300px;
            opacity: 1;
        }

        #offer-calc .orient-split-row {
            display: flex;
            gap: 12px;
        }

        #offer-calc .orient-split-item {
            flex: 1;
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        #offer-calc .orient-split-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        #offer-calc .orient-split-controls {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        #offer-calc .orient-split-btn {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            border: none;
            background: #f1f5f9;
            color: var(--text-main);
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (hover: hover) and (pointer: fine) {
            #offer-calc .orient-split-btn:hover {
                transform: translateY(-1px);
            }
        }

        #offer-calc .orient-split-btn.disabled {
            opacity: 0.3;
            cursor: not-allowed;
            pointer-events: none;
        }

        #offer-calc .orient-split-val {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-main);
            min-width: 30px;
            text-align: center;
        }

        #offer-calc .orient-split-kwp {
            font-size: 11px;
            font-weight: 600;
            color: var(--primary);
            background: #f0fdf4;
            padding: 2px 8px;
            border-radius: 6px;
        }

        #offer-calc .shade-warning {
            display: none;
            margin-top: 12px;
            align-items: flex-start;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 10px;
            background: #fef3c7;
            border: 1px solid rgba(217, 119, 6, 0.25);
            color: #854d0e;
            font-size: 11px;
            line-height: 1.45;
            font-weight: 600;
            text-transform: none;
            letter-spacing: normal;
        }

        #offer-calc .shade-warning.show {
            display: inline-flex;
        }

        #offer-calc .shade-warning-icon {
            width: 18px;
            height: 18px;
            min-width: 18px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: #d97706;
            color: #fff;
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            margin-top: 0;
        }

        #offer-calc .shade-warning span:last-child {
            flex: 1;
            min-width: 0;
        }

        #offer-calc .shade-card-title {
            display: block;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.25;
        }

        #offer-calc .shade-card-meta {
            display: block;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            line-height: 1.35;
        }

        #offer-calc .shade-detail-wrap {
            display: none;
            margin-top: 12px;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #f8fafc;
        }

        #offer-calc .shade-detail-wrap.open {
            display: block;
        }

        #offer-calc .shade-detail-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 4px;
        }

        #offer-calc .shade-detail-subtitle {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.45;
            margin-bottom: 10px;
        }

        #offer-calc .shade-timing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
            gap: 10px;
        }

        #offer-calc .shade-timing-grid .toggle-btn {
            min-height: 70px;
            align-items: flex-start;
            justify-content: flex-start;
            padding: 12px 10px;
            gap: 6px;
            text-align: left;
        }

        #offer-calc .shade-split-wrap {
            margin-top: 14px;
            display: none;
        }

        #offer-calc .shade-split-wrap.open {
            display: block;
        }

        #offer-calc .shade-split-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(180px, 1fr));
            gap: 12px;
        }

        #offer-calc .shade-split-item {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
        }

        #offer-calc .shade-split-label {
            display: block;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        #offer-calc .shade-inline-field {
            margin-top: 10px;
        }

        #offer-calc .shade-inline-label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        #offer-calc .shade-inline-help {
            margin-top: 8px;
            font-size: 11px;
            color: var(--text-muted);
            line-height: 1.4;
        }

        #offer-calc .config-footnote {
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid #e2e8f0;
            max-width: 560px;
            font-size: 11px;
            line-height: 1.55;
            color: #64748b;
        }

        /* === CURBA PRODUCTIE ZILNICA === */
        #offer-calc .chart-wrap {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px;
            position: relative;
        }

        #offer-calc .chart-canvas {
            width: 100%;
            height: 260px;
            display: block;
        }

        #offer-calc .chart-footer {
            text-align: center;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 10px;
            font-weight: 500;
        }

        #offer-calc .chart-footer b {
            color: var(--primary);
            font-weight: 700;
        }

        #offer-calc .chart-tooltip {
            position: absolute;
            background: #1e293b;
            color: #fff;
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.15s;
            z-index: 15;
            white-space: normal;
            max-width: 240px;
            line-height: 1.5;
        }

        #offer-calc .chart-tooltip.visible {
            opacity: 1;
        }

        @media (max-width: 500px) {
            #offer-calc .orient-split-row {
                flex-direction: column;
            }

            #offer-calc .shade-split-grid {
                grid-template-columns: 1fr;
            }

            #offer-calc .orient-btn .orient-tip {
                width: min(200px, calc(100vw - 32px));
                font-size: 10px;
            }

            #offer-calc .panel-settings-summary {
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
        }

        /* === CHART ADVANCED SETTINGS === */
        #offer-calc .chart-adv-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-size: 11px;
            color: var(--primary);
            cursor: pointer;
            margin-top: 10px;
            opacity: 0.7;
            font-weight: 600;
        }

        #offer-calc .chart-adv-toggle:hover {
            opacity: 1;
        }

        #offer-calc .chart-adv-panel {
            height: 0;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-8px);
            will-change: height, opacity, transform;
            transition:
                height 0.44s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.24s ease,
                transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0.44s;
        }

        #offer-calc .chart-adv-panel.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
            transition:
                height 0.44s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease 0.04s,
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0s;
        }

        #offer-calc .chart-adv-inner {
            padding-top: 14px;
            margin-top: 10px;
            border-top: 1px dashed var(--border);
            display: flex;
            flex-direction: column;
            gap: 14px;
            opacity: 0;
            transform: translateY(-8px);
            transition: opacity 0.24s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        }

        #offer-calc .roi-advanced-panel>* {
            opacity: 0;
            transform: translateY(-8px);
            transition: opacity 0.24s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        }

        #offer-calc .chart-adv-panel.open .chart-adv-inner,
        #offer-calc .roi-advanced-panel.open>* {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.06s;
        }

        #offer-calc .cav-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        #offer-calc .cav-row label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            min-width: 120px;
            margin: 0;
            text-transform: none;
            letter-spacing: normal;
        }

        #offer-calc .cav-hint {
            margin: -4px 0 2px 0;
            font-size: 11px;
            line-height: 1.45;
            color: #64748b;
        }

        #offer-calc .cav-row input[type="range"] {
            flex: 1;
            height: 6px;
            -webkit-appearance: none;
            appearance: none;
            background: #e2e8f0;
            border-radius: 3px;
            outline: none;
        }

        #offer-calc .cav-row input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(21, 128, 61, 0.3);
        }

        #offer-calc .cav-row input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            border: none;
            cursor: pointer;
        }

        #offer-calc .cav-val {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-main);
            min-width: 36px;
            text-align: right;
        }

        #offer-calc .cav-input {
            width: 70px;
            padding: 6px 8px;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid var(--border);
            border-radius: 8px;
            text-align: center;
            outline: none;
            color: var(--text-main);
        }

        #offer-calc .cav-input:focus {
            border-color: var(--primary);
        }

        #offer-calc .cav-section-title {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--primary);
            margin: 4px 0 0 0;
            padding-top: 8px;
            border-top: 1px solid #f1f5f9;
        }

        #offer-calc .chart-legend {
            display: flex;
            gap: 14px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 8px;
            font-size: 11px;
            color: var(--text-muted);
        }

        #offer-calc .chart-legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        #offer-calc .legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            flex-shrink: 0;
        }

        #offer-calc .chart-daily-value {
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            color: var(--primary);
            margin-top: 4px;
        }

        #offer-calc .chart-daily-detail {
            text-align: center;
            font-size: 10px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        @media (max-width: 500px) {
            #offer-calc .cav-row {
                flex-wrap: wrap;
            }

            #offer-calc .cav-row label {
                min-width: 100%;
                margin-bottom: -4px;
            }
        }


        /* === ANIMATIE ALERTA ROSIE === */
        @keyframes pulseRedAlert {
            0% {
                box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
            }

            70% {
                box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
            }
        }

        #offer-calc .alert-pulse-red {
            animation: pulseRedAlert 2s infinite;
        }

        /* === MODERN UI POLISH OVERRIDES === */
        #offer-calc {
            --surface-0: #f4f7f3;
            --surface-1: #ffffff;
            --surface-2: #fbfcfd;
            --surface-3: #eef2f6;
            --border-soft: rgba(15, 23, 42, 0.08);
            --border-strong: rgba(110, 231, 183, 0.26);
            --ink-soft: #334155;
            --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 26px rgba(15, 23, 42, 0.06);
            --shadow-hover: 0 14px 34px rgba(15, 23, 42, 0.10);
            --shadow-pressed: 0 8px 18px rgba(15, 23, 42, 0.08);
            --brand-green: #15803d;
            --brand-green-deep: #14532d;
            --brand-green-bright: #22c55e;
            --brand-summary-top: #14532d;
            --brand-summary-mid: #0f5132;
            --brand-summary-bottom: #064e3b;
            --radius-sm: 14px;
            --radius-md: 18px;
            --radius-lg: 22px;
            --radius-pill: 999px;
        }

        @keyframes selectSettle {
            0% {
                box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
                filter: saturate(0.98) brightness(0.985);
            }

            60% {
                box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
                filter: saturate(1.01) brightness(1.01);
            }

            100% {
                box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
                filter: saturate(1) brightness(1);
            }
        }

        @keyframes accentSweep {
            0% {
                opacity: 0;
                transform: translateY(-10px) scaleX(0.76);
            }

            100% {
                opacity: 1;
                transform: translateY(0) scaleX(1);
            }
        }

        #offer-calc * {
            transition-property: background-color, border-color, color, box-shadow, transform, opacity, filter;
            transition-duration: 0.22s;
            transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* mode-tabs/mode-tab redesign removed (tabs eliminated) */

        #offer-calc .toggle-grid {
            gap: 14px;
        }

        #offer-calc .toggle-btn,
        #offer-calc .orient-btn {
            overflow: hidden;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-soft);
            background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
            box-shadow: var(--shadow-soft);
            color: var(--ink-soft);
        }

        /* 1. Resetăm bara */
        #offer-calc .toggle-btn::before,
        #offer-calc .orient-btn::before,
        #offer-calc .pill-item::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 5%;
            right: 5%;
            height: 3px;
            border-radius: 50%;

            /* Un gradient verde mai curat, concentrat pe centru */
            background: linear-gradient(90deg,
                    rgba(34, 197, 94, 0) 0%,
                    rgba(34, 197, 94, 0.8) 30%,
                    rgba(34, 197, 94, 1) 50%,
                    rgba(34, 197, 94, 0.8) 70%,
                    rgba(34, 197, 94, 0) 100%);

            transform-origin: center;
            transform: scaleX(0);
            opacity: 0;
            pointer-events: none;
            z-index: 10;
        }

        /* 2. Declanșăm animația doar la selecție */
        #offer-calc .toggle-btn.selected::before,
        #offer-calc .orient-btn.selected::before,
        #offer-calc .pill-item.selected::before {
            /* O curbă de decelerație mai lungă (0.5s) pentru fluiditate maximă */
            animation: smoothGlowExpand 7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* 3. Animația cursivă, fără trepte intermediare la mișcare */
        @keyframes smoothGlowExpand {
            0% {
                opacity: 0;
                transform: scaleX(0);
                box-shadow: 0 0 0 rgba(34, 197, 94, 0);
            }

            15% {
                /* Opacitatea crește rapid la început, ca să vedem lumina imediat */
                opacity: 1;
                box-shadow: 0 2px 10px rgba(34, 197, 94, 0.8);
            }

            100% {
                opacity: 1;
                /* Extinderea se face dintr-o singură mișcare lină 0 -> 1 */
                transform: scaleX(1);
                /* Umbra se așază discret la final */
                box-shadow: 0 2px 8px rgba(21, 128, 61, 0.4);
            }
        }

        @media (hover: hover) and (pointer: fine) {

            #offer-calc .toggle-btn:hover,
            #offer-calc .orient-btn:hover,
            #offer-calc .pill-item:hover {
                transform: translateY(-1px);
            }
        }

        #offer-calc .toggle-btn.selected,
        #offer-calc .orient-btn.selected,
        #offer-calc .pill-item.selected {
            border-color: rgba(20, 83, 45, 0.16);
            background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
            color: var(--text-main);
            box-shadow: 0 0 0 1px rgba(20, 83, 45, 0.08), 0 18px 34px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.94);
            animation: selectSettle 0.42s cubic-bezier(0.22, 1, 0.36, 1);
        }


        #offer-calc .toggle-btn.selected svg,
        #offer-calc .orient-btn.selected svg {
            stroke: var(--brand-green-deep);
        }

        #offer-calc .toggle-btn.selected .shade-card-meta,
        #offer-calc .orient-btn.selected .orient-eff {
            color: var(--brand-green-deep);
            opacity: 0.84;
        }

        #offer-calc .toggle-btn.disabled,
        #offer-calc .orient-split-btn.disabled,
        #offer-calc .battery-btn.disabled,
        #offer-calc .inverter-btn.disabled,
        #offer-calc .stepper-btn.disabled {
            opacity: 0.45;
            box-shadow: none;
            border-color: rgba(148, 163, 184, 0.18);
        }

        #offer-calc .extra-wrap,
        #offer-calc .panel-settings-wrap,
        #offer-calc .pvgis-details-card,
        #offer-calc .shade-detail-wrap,
        #offer-calc .shade-split-item,
        #offer-calc .orient-split-item,
        #offer-calc .chart-wrap,
        #offer-calc .battery-widget,
        #offer-calc .inverter-widget,
        #offer-calc .stepper-wrapper {
            border: 1px solid var(--border-soft);
            border-radius: var(--radius-md);
            background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
            box-shadow: var(--shadow-soft);
        }

        #offer-calc .battery-widget,
        #offer-calc .inverter-widget,
        #offer-calc .stepper-wrapper {
            padding: 18px;
            border-color: rgba(15, 23, 42, 0.08);
            border-radius: 20px;
            background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
        }

        #offer-calc .battery-name,
        #offer-calc .inverter-name,
        #offer-calc .stepper-val {
            color: var(--text-main);
        }

        #offer-calc .battery-icon,
        #offer-calc .inverter-icon,
        #offer-calc .stepper-icon {
            color: var(--primary);
            opacity: 1;
        }

        #offer-calc .stepper-icon {
            opacity: 0.9;
        }

        #offer-calc .battery-widget .battery-icon,
        #offer-calc .inverter-widget .inverter-icon,
        #offer-calc .stepper-wrapper .stepper-icon {
            color: var(--primary);
            opacity: 1;
        }

        #offer-calc .extra-wrap,
        #offer-calc .panel-settings-wrap,
        #offer-calc .pvgis-details-card {
            border-radius: var(--radius-lg);
            transition: border-color 0.28s ease, box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1), background 0.32s ease;
        }

        #offer-calc .extra-wrap.open,
        #offer-calc .panel-settings-wrap.open {
            border-color: rgba(21, 128, 61, 0.12);
            box-shadow: 0 20px 36px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.92);
        }

        #offer-calc .extra-header,
        #offer-calc .panel-settings-header,
        #offer-calc .pvgis-details-header {
            padding: 16px 18px;
            background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
            transition: background 0.28s ease, border-radius 0.32s ease, box-shadow 0.32s ease;
        }

        #offer-calc .extra-header:hover,
        #offer-calc .panel-settings-header:hover,
        #offer-calc .pvgis-details-header:hover {
            background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
        }

        #offer-calc .extra-wrap.open .extra-header,
        #offer-calc .panel-settings-wrap.open .panel-settings-header,
        #offer-calc .pvgis-details-card.open .pvgis-details-header {
            background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
        }

        #offer-calc .extra-title,
        #offer-calc .pvgis-header-title {
            color: var(--text-main);
            font-weight: 700;
        }

        #offer-calc .extra-active-badge {
            padding: 4px 10px;
            border-radius: var(--radius-pill);
            border: 1px solid rgba(20, 83, 45, 0.2);
            background: rgba(220, 252, 231, 0.92);
            color: var(--brand-green-deep);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }

        #offer-calc .extra-arrow,
        #offer-calc #pvgisExpandIcon {
            width: 32px;
            height: 32px;
            padding: 7px;
            border-radius: var(--radius-pill);
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
            color: #0f172a;
            flex-shrink: 0;
        }

        #offer-calc .extra-wrap.open .extra-arrow {
            transform: rotate(180deg);
            background: #ecfdf5;
            border-color: rgba(21, 128, 61, 0.22);
            color: var(--primary);
        }

        #offer-calc #pvgisExpandIcon svg {
            width: 100%;
            height: 100%;
            display: block;
            stroke: currentColor;
            fill: none;
            transform: rotate(0deg);
        }

        #offer-calc .pvgis-details-card.open #pvgisExpandIcon {
            background: #ecfdf5;
            color: var(--primary);
            border-color: rgba(21, 128, 61, 0.22);
        }

        #offer-calc .pvgis-details-card.open #pvgisExpandIcon svg {
            transform: rotate(180deg);
        }

        #offer-calc .pvgis-state-badge {
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }

        #offer-calc .pvgis-details-card,
        #offer-calc .pvgis-details-card.open,
        #offer-calc .pvgis-details-body,
        #offer-calc .pvgis-summary-grid,
        #offer-calc .pvgis-request-block,
        #offer-calc .pvgis-orientation-list,
        #offer-calc .pvgis-orientation-card,
        #offer-calc .pvgis-metric-grid,
        #offer-calc .pvgis-metric,
        #offer-calc .pvgis-chip-row,
        #offer-calc .pvgis-chip,
        #offer-calc .pvgis-label-row,
        #offer-calc .pvgis-orientation-meta {
            overflow: visible;
        }

        #offer-calc .pvgis-mini-card,
        #offer-calc .pvgis-request-block,
        #offer-calc .pvgis-orientation-card,
        #offer-calc .pvgis-metric,
        #offer-calc .pvgis-chip {
            position: relative;
        }

        #offer-calc .pvgis-details-card .roi-info-icon {
            z-index: auto;
        }

        #offer-calc .pvgis-details-card .roi-info-icon:hover,
        #offer-calc .pvgis-details-card .roi-info-icon.open,
        #offer-calc .pvgis-details-card .roi-info-icon:focus-within {
            z-index: 180;
        }

        #offer-calc .pvgis-details-card .roi-tooltip {
            z-index: 9999;
        }

        #offer-calc .pvgis-mini-card:has(.roi-info-icon:hover, .roi-info-icon.open, .roi-info-icon:focus-within),
        #offer-calc .pvgis-metric:has(.roi-info-icon:hover, .roi-info-icon.open, .roi-info-icon:focus-within),
        #offer-calc .pvgis-orientation-card:has(.roi-info-icon:hover, .roi-info-icon.open, .roi-info-icon:focus-within),
        #offer-calc .pvgis-chip:has(.roi-info-icon:hover, .roi-info-icon.open, .roi-info-icon:focus-within) {
            z-index: 200;
        }

        #offer-calc .chart-adv-toggle,
        #offer-calc .roi-advanced-toggle {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: var(--radius-pill);
            border: 1px solid rgba(21, 128, 61, 0.16);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 244, 0.95));
            color: var(--primary-dark);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.01em;
            opacity: 1;
            margin-top: 12px;
            text-decoration: none;
            border: 1px solid rgba(21, 128, 61, 0.16);
        }

        #offer-calc .summary-card .roi-advanced-toggle {
            width: auto;
            justify-content: flex-start;
            padding: 0;
            border: none;
            border-radius: 0;
            background: none;
            color: #86efac;
            box-shadow: none;
            font-size: 11px;
            letter-spacing: 0;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        #offer-calc .summary-card .roi-advanced-toggle::after {
            content: none;
            display: none;
        }

        #offer-calc .summary-card .roi-advanced-toggle:hover {
            transform: none;
            box-shadow: none;
            color: #bbf7d0;
            filter: none;
        }

        #offer-calc .summary-card .roi-advanced-toggle[aria-expanded="true"] {
            background: none;
            color: #dcfce7;
        }

        #offer-calc .chart-adv-toggle::after,
        #offer-calc .roi-advanced-toggle::after {
            content: '>';
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            border-radius: var(--radius-pill);
            background: rgba(21, 128, 61, 0.10);
            color: var(--primary);
            font-size: 11px;
            line-height: 1;
            transform: rotate(90deg);
        }

        #offer-calc .chart-adv-toggle[aria-expanded="true"]::after,
        #offer-calc .roi-advanced-toggle[aria-expanded="true"]::after {
            transform: rotate(270deg);
        }

        #offer-calc .chart-adv-toggle:hover,
        #offer-calc .roi-advanced-toggle:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
        }

        #offer-calc .chart-adv-inner {
            margin-top: 14px;
            padding: 16px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(15, 23, 42, 0.08);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        #offer-calc .chart-adv-inner {
            border-top: 1px solid rgba(15, 23, 42, 0.08);
        }

        #offer-calc .roi-advanced-panel {
            border-top: none;
            margin-top: 0;
            padding-top: 0;
        }

        #offer-calc .roi-advanced-panel.open {
            margin-top: 14px;
            padding: 16px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(220, 252, 231, 0.14);
            background:
                radial-gradient(circle at 14% 10%, rgba(187, 247, 208, 0.12) 0%, rgba(187, 247, 208, 0) 34%),
                linear-gradient(145deg, #14532d 0%, #064e3b 100%);
            box-shadow:
                0 14px 30px rgba(3, 37, 29, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.07);
        }

        #offer-calc .roi-advanced-panel.open .adv-input-group label {
            color: rgba(236, 253, 245, 0.92);
        }

        #offer-calc .roi-advanced-panel.open .adv-input-group input {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(220, 252, 231, 0.14);
            color: #ffffff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        #offer-calc .roi-advanced-panel.open .adv-input-group input:focus {
            border-color: rgba(187, 247, 208, 0.4);
            box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.12);
        }

        @media (prefers-reduced-motion: reduce) {

            #offer-calc .extra-wrap,
            #offer-calc .panel-settings-wrap,
            #offer-calc .extra-header,
            #offer-calc .panel-settings-header,
            #offer-calc .chart-adv-toggle,
            #offer-calc .roi-advanced-toggle,
            #offer-calc .extra-body,
            #offer-calc .extra-body>*,
            #offer-calc .chart-adv-panel,
            #offer-calc .chart-adv-inner,
            #offer-calc .roi-advanced-panel,
            #offer-calc .roi-advanced-panel>* {
                transition: none !important;
            }
        }

        #offer-calc .battery-btn,
        #offer-calc .inverter-btn,
        #offer-calc .stepper-btn,
        #offer-calc .orient-split-btn,
        #offer-calc .hp-power-stepper button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            width: 46px;
            height: 46px;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(15, 23, 42, 0.08);
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
            color: var(--brand-green-deep);
            font-weight: 800;
            font-size: 21px;
            line-height: 1;
        }

        #offer-calc .battery-btn:hover:not(.disabled),
        #offer-calc .inverter-btn:hover:not(.disabled),
        #offer-calc .stepper-btn:hover:not(.disabled),
        #offer-calc .orient-split-btn:hover:not(.disabled),
        #offer-calc .hp-power-stepper button:hover:not(.disabled) {
            border-color: rgba(21, 128, 61, 0.24);
            background: #ffffff;
            box-shadow: var(--shadow-soft);
            transform: translateY(-1px);
        }

        #offer-calc .battery-btn:active:not(.disabled),
        #offer-calc .inverter-btn:active:not(.disabled),
        #offer-calc .stepper-btn:active:not(.disabled),
        #offer-calc .orient-split-btn:active:not(.disabled),
        #offer-calc .hp-power-stepper button:active:not(.disabled) {
            transform: translateY(1px);
        }

        #offer-calc .hp-power-stepper {
            padding: 2px;
            gap: 2px;
            border-radius: var(--radius-md);
            border-color: rgba(15, 23, 42, 0.08);
            box-shadow: var(--shadow-soft);
        }

        #offer-calc .battery-btn svg,
        #offer-calc .inverter-btn svg,
        #offer-calc .stepper-btn svg,
        #offer-calc .orient-split-btn svg,
        #offer-calc .hp-power-stepper button svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            stroke-width: 2.6;
            fill: none;
            pointer-events: none;
        }

        #offer-calc .orient-split-kwp {
            border-radius: var(--radius-pill);
            padding: 5px 10px;
            font-weight: 700;
        }

        #offer-calc .field-label-inline {
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: flex-start;
        }

        #offer-calc .config-info-icon {
            background: #64748b;
            color: #fff;
            text-transform: none !important;
            width: 17px;
            height: 17px;
            min-width: 17px;
            min-height: 17px;
            flex: 0 0 17px;
            border-radius: 999px;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            font-size: 10px;
            font-weight: 700;
            line-height: 1;
            align-self: center;
        }

        #offer-calc .config-info-icon:hover,
        #offer-calc .config-info-icon.open,
        #offer-calc .config-info-icon:focus-within {
            background: #475569;
            color: #fff;
        }

        #offer-calc .address-input {
            width: 100%;
            padding: 16px 18px;
            font-size: 15px;
            font-weight: 600;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--text-main);
            background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
            border: 1px solid var(--border-soft);
            border-radius: var(--radius-md);
            outline: none;
            box-shadow: var(--shadow-soft);
        }

        #offer-calc .address-input:focus {
            border-color: rgba(21, 128, 61, 0.3);
            box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.10), var(--shadow-soft);
        }

        #offer-calc .panel-settings-wrap,
        #offer-calc .panel-settings-wrap.open,
        #offer-calc .panel-settings-body,
        #offer-calc #ui-shadePreset,
        #offer-calc #ui-shadePreset .toggle-btn.shade-choice-btn {
            overflow: visible;
        }

        #offer-calc #ui-shadePreset .toggle-btn.shade-choice-btn {
            isolation: isolate;
        }

        #offer-calc #ui-shadePreset .toggle-btn.shade-choice-btn:hover,
        #offer-calc #ui-shadePreset .toggle-btn.shade-choice-btn:focus-within {
            z-index: 24;
        }

        #offer-calc .roi-info-icon.shade-choice-info,
        #offer-calc .roi-info-icon.shade-choice-info .roi-tooltip {
            z-index: 120;
        }

        #offer-calc .summary-card {
            border-radius: var(--radius-lg);
            padding: 18px 20px;
            background: linear-gradient(145deg, #0f5132 0%, #0c4330 48%, #064e3b 100%);
            box-shadow: 0 24px 54px rgba(6, 78, 59, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.10);
        }

        #offer-calc .csl-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
            padding: 4px 8px;
            border-radius: 10px;
        }

        #offer-calc .roi-block {
            border-style: solid;
            border-color: rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.09);
            border-radius: var(--radius-md);
        }

        #offer-calc .call-btn-summary,
        #offer-calc #btnDownloadPdf {
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 14px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.2;
            text-decoration: none;
            border: 1px solid rgba(21, 128, 61, 0.14);
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
            cursor: pointer;
        }

        #offer-calc .call-btn-summary {
            background: rgba(255, 255, 255, 0.94);
            color: #0f172a;
        }

        #offer-calc #btnDownloadPdf {
            display: flex;
            background: linear-gradient(180deg, #ffffff 0%, #eef7f1 100%);
            color: #0f172a;
            margin-top: 12px;
        }

        #offer-calc .call-btn-summary:hover,
        #offer-calc #btnDownloadPdf:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 34px rgba(15, 23, 42, 0.22);
        }

        #offer-calc .call-btn-summary:active,
        #offer-calc #btnDownloadPdf:active {
            transform: translateY(1px);
        }

        @media (max-width: 768px) {

            #offer-calc .toggle-btn,
            #offer-calc .orient-btn {
                border-radius: 16px;
            }

            #offer-calc .call-btn-summary,
            #offer-calc #btnDownloadPdf {
                border-radius: 18px;
            }
        }


        /* === SS: consum, productie lunara, proiectie 25 ani, link partajare === */
        #offer-calc .ss-opt { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #94a3b8; margin-left: 6px; }
        #offer-calc .ss-cons-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
        #offer-calc .ss-seg { display: inline-flex; background: #f1f5f9; border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; flex: 0 0 auto; }
        #offer-calc .ss-seg-btn { appearance: none; border: 0; background: transparent; color: var(--text-muted); font: 600 13px/1.2 'Inter', system-ui, -apple-system, sans-serif; padding: 10px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
        #offer-calc .ss-seg-btn:hover { color: var(--text-main); }
        #offer-calc .ss-seg-btn.selected { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 10px -4px rgba(21, 128, 61, .25); }
        #offer-calc .ss-seg-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
        #offer-calc .ss-seg-sm .ss-seg-btn { padding: 6px 10px; font-size: 12px; }
        #offer-calc .ss-cons-input-wrap { position: relative; flex: 1 1 160px; min-width: 140px; }
        #offer-calc .ss-cons-input { width: 100%; height: 100%; min-height: 48px; box-sizing: border-box; padding: 12px 64px 12px 16px; font: 700 16px 'Inter', system-ui, -apple-system, sans-serif; color: var(--text-main); background: #fff; border: 1px solid var(--border); border-radius: 12px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; -moz-appearance: textfield; }
        #offer-calc .ss-cons-input::-webkit-outer-spin-button, #offer-calc .ss-cons-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        #offer-calc .ss-cons-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21, 128, 61, .12); }
        #offer-calc .ss-cons-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: #94a3b8; pointer-events: none; }
        #offer-calc .ss-cons-hint { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
        #offer-calc .ss-cons-hint b { color: var(--text-main); }
        #offer-calc .ss-cons-hint .ss-ok { color: var(--primary); font-weight: 700; }
        #offer-calc .ss-cons-hint .ss-warn { color: #b45309; font-weight: 700; }

        #offer-calc .ss-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
        #offer-calc .ss-block-head label { margin: 0; }
        #offer-calc .ss-src-chip { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: var(--text-muted); white-space: nowrap; }
        #offer-calc .ss-src-chip.is-pvgis { background: rgba(21, 128, 61, .1); color: var(--primary); }
        #offer-calc .ss-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }

        #offer-calc .ss-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 150px; align-items: end; position: relative; padding-top: 18px; }
        #offer-calc .ss-bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; }
        #offer-calc .ss-bar-fill { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #22c55e 0%, #15803d 100%); opacity: .88; transition: height .45s cubic-bezier(.16, 1, .3, 1), opacity .2s ease; }
        #offer-calc .ss-bar:hover .ss-bar-fill, #offer-calc .ss-bar:focus .ss-bar-fill { opacity: 1; }
        #offer-calc .ss-bar-val { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--text-main); white-space: nowrap; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
        #offer-calc .ss-bar:hover .ss-bar-val, #offer-calc .ss-bar:focus .ss-bar-val, #offer-calc .ss-bar.is-peak .ss-bar-val { opacity: 1; }
        #offer-calc .ss-bar-lbl { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); height: 14px; }
        #offer-calc .ss-bars-cons { position: absolute; left: 0; right: 0; border-top: 2px dashed #f59e0b; pointer-events: none; }
        #offer-calc .ss-bars-cons span { position: absolute; right: 0; top: -18px; font-size: 10px; font-weight: 700; color: #b45309; background: rgba(255, 255, 255, .9); padding: 0 4px; border-radius: 4px; }
        #offer-calc .ss-bars-foot { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
        #offer-calc .ss-bars-foot b { color: var(--text-main); }

        #offer-calc .ss-proj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
        #offer-calc .ss-stat { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; min-width: 0; }
        #offer-calc .ss-stat-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }
        #offer-calc .ss-stat-v { margin-top: 2px; font-size: 17px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        #offer-calc .ss-stat-v.is-pos { color: var(--primary); }
        #offer-calc .ss-proj-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
        #offer-calc .ss-proj-chart text { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
        #offer-calc .ss-proj-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
        #offer-calc .ss-proj-ctrl-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
        #offer-calc .ss-proj-note { margin-top: 10px; font-size: 11px; line-height: 1.5; color: #94a3b8; }

        #offer-calc .ss-share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 11px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; font: 700 13px 'Inter', system-ui, -apple-system, sans-serif; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
        #offer-calc .ss-share-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
        #offer-calc .ss-share-btn.is-done { border-color: #86efac; color: #86efac; }

        @media (max-width: 768px) {
            #offer-calc .ss-cons-row { flex-direction: column; }
            #offer-calc .ss-cons-input-wrap { flex: 0 0 auto; }
            #offer-calc .ss-cons-input { height: 48px; }
            #offer-calc .ss-stat-k { font-size: 10px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            #offer-calc .ss-seg { width: 100%; box-sizing: border-box; }
            #offer-calc .ss-seg .ss-seg-btn { flex: 1 1 0; }
            #offer-calc .ss-seg-sm { width: auto; }
            #offer-calc .ss-bars { gap: 3px; height: 130px; }
            #offer-calc .ss-bar-lbl .ss-m-long { display: none; }
            #offer-calc .ss-proj-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
            #offer-calc .ss-stat { padding: 8px; }
            #offer-calc .ss-stat-v { font-size: 14px; }
        }
        @media (min-width: 769px) { #offer-calc .ss-bar-lbl .ss-m-short { display: none; } }


        /* === SS: flux in 3 pasi, ajustari tehnice, rezultate pe file === */
        #offer-calc .ss-sector-row { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
        #offer-calc .ss-sector-lbl { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
        #offer-calc .ss-sector-row .form-group { margin: 0; flex: 1; min-width: 0; }
        #offer-calc .ss-sector-row .form-group > label { display: none; }
        #offer-calc .ss-sector-row .toggle-grid { gap: 8px; }
        #offer-calc .ss-sector-row .toggle-btn { padding: 10px 12px !important; min-height: 0 !important; flex-direction: row !important; gap: 8px; }
        #offer-calc .ss-sector-row .toggle-btn svg { width: 18px; height: 18px; margin: 0 !important; }

        #offer-calc .ss-step, #offer-calc .ss-res { box-sizing: border-box; max-width: 100%; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 18px; margin: 0 0 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .18); }
        #offer-calc .ss-step { padding: 22px 22px 4px; }
        #offer-calc .ss-step-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
        #offer-calc .ss-step-num { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font: 800 14px/30px 'Inter', system-ui, -apple-system, sans-serif; text-align: center; }
        #offer-calc h2.ss-step-title, #offer-calc .ss-step-title { margin: 0 !important; padding: 0 !important; font: 800 18px/1.25 'Inter', system-ui, -apple-system, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--text-main) !important; }
        #offer-calc .ss-step-sub { margin: 3px 0 0 !important; padding: 0 !important; font-size: 13px !important; line-height: 1.45 !important; color: var(--text-muted) !important; }
        #offer-calc .ss-step .form-group { margin-bottom: 20px; }
        #offer-calc .ss-step-opt { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: var(--text-muted); font: 700 11px/1.5 'Inter', system-ui, -apple-system, sans-serif; text-transform: none; letter-spacing: 0; vertical-align: 3px; }
        #offer-calc .ss-step .ss-opt { display: none; }
        #offer-calc .ss-mode-seg { display: flex; width: 100%; box-sizing: border-box; margin: 0 0 20px; }
        #offer-calc .ss-mode-seg .ss-seg-btn { flex: 1 1 0; padding: 12px 10px; font-size: 14px; white-space: normal; }
        #offer-calc .ss-mode-pane[hidden] { display: none !important; }
        #offer-calc .ss-phase-hint { margin: -10px 0 20px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
        #offer-calc #ssModePower .form-group:first-child { margin-bottom: 18px; }
        #offer-calc .ss-auto { display: inline-block; margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--primary); background: rgba(21, 128, 61, .1); padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }

        #offer-calc .ss-adv { box-sizing: border-box; max-width: 100%; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 18px; margin: 0 0 18px; }
        #offer-calc .ss-adv > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 18px; }
        #offer-calc .ss-adv > summary::-webkit-details-marker { display: none; }
        #offer-calc .ss-adv > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
        #offer-calc .ss-adv-ico { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: #475569; }
        #offer-calc .ss-adv-txt { display: flex; flex-direction: column; min-width: 0; }
        #offer-calc .ss-adv-t { font: 800 16px 'Inter', system-ui, -apple-system, sans-serif; color: var(--text-main); }
        #offer-calc .ss-adv-s { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
        #offer-calc .ss-adv-s .ss-warn { color: #b45309; font-weight: 700; }
        #offer-calc .ss-auto.is-custom { color: #475569; background: #e2e8f0; }
        #offer-calc .ss-og-hint { margin: -8px 0 18px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
        /* pret fara tremur: cifre de latime egala, aliniate la dreapta */
        #offer-calc .msf-val, #offer-calc #sumGrand { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
        #offer-calc .msf-val { display: inline-block; text-align: right; min-width: 6.4em; white-space: nowrap; }
        #offer-calc .ss-adv-chev { margin-left: auto; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
        #offer-calc .ss-adv[open] .ss-adv-chev { transform: rotate(180deg); }
        #offer-calc .ss-adv-body { padding: 4px 22px 6px; }

        #offer-calc .ss-res { padding: 18px 18px 8px; }
        #offer-calc .ss-res-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
        #offer-calc .ss-tabs { display: inline-flex; background: #f1f5f9; border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
        #offer-calc .ss-tab { appearance: none; border: 0; background: transparent; font: 700 13px 'Inter', system-ui, -apple-system, sans-serif; color: var(--text-muted); padding: 9px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
        #offer-calc .ss-tab:hover { color: var(--text-main); }
        #offer-calc .ss-tab.is-on { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 10px -4px rgba(21, 128, 61, .25); }
        #offer-calc .ss-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
        #offer-calc .ss-res-alert:empty { display: none; }
        #offer-calc .ss-res-alert { margin: 0 0 12px; }
        #offer-calc .ss-res .form-group { margin-bottom: 10px; }
        #offer-calc .ss-res #chartLabel, #offer-calc .ss-res .ss-block-head > label, #offer-calc .ss-res #ssProjWrap > label { display: none; }
        #offer-calc .ss-res .ss-block-head { justify-content: flex-end; margin-bottom: 6px; }
        #offer-calc .ss-pane[hidden] { display: none !important; }
        #offer-calc .ss-res-after { margin: -4px 0 18px; }
        #offer-calc .ss-res-after .config-footnote { margin-top: 12px; }

        @media (max-width: 768px) {
            #offer-calc .config-area { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
            #offer-calc .ss-sector-row { flex-direction: column; align-items: stretch; gap: 8px; }
            #offer-calc .ss-sector-row .toggle-grid { grid-template-columns: 1fr 1fr !important; }
            #offer-calc .ss-step { padding: 16px 10px 2px; border-radius: 16px; overflow: visible; }
            #offer-calc .ss-step-title, #offer-calc h2.ss-step-title { font-size: 16.5px !important; }
            #offer-calc .ss-step .toggle-grid, #offer-calc .ss-step .toggle-btn, #offer-calc .ss-step .panel-settings-section { min-width: 0 !important; max-width: 100%; }
            #offer-calc .ss-step .toggle-grid.ss-g3 { grid-template-columns: repeat(3, 1fr) !important; }
            #offer-calc .ss-step .toggle-grid.ss-g2 { grid-template-columns: 1fr 1fr !important; }
            #offer-calc .ss-step .toggle-grid.ss-g3 .toggle-btn, #offer-calc .ss-step .toggle-grid.ss-g2 .toggle-btn { min-height: 0 !important; padding: 14px 8px !important; }
            #offer-calc .ss-adv > summary { padding: 16px 12px; }
            #offer-calc .ss-adv-body { padding: 4px 10px 6px; }
            #offer-calc .ss-res { padding: 14px 10px 6px; border-radius: 16px; }
            #offer-calc .ss-tabs { width: 100%; box-sizing: border-box; }
            #offer-calc .ss-tab { flex: 1 1 0; padding: 9px 6px; }
        }

        /* === SS: asistentul AI pe mobil - ascuns cat timp e vizibila bara de rezumat === */
        #offer-calc .msf-chat-btn { display: none; }
        @media (max-width: 900px) {
            body.ss-msf-on .mwai-trigger { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; transition: opacity .25s ease, visibility 0s linear .25s !important; }
            body:has(.mwai-chat.mwai-open) #mobile-sticky-footer { display: none !important; }
            #offer-calc .msf-chat-btn:not([hidden]) { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: 8px; flex-shrink: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; padding: 0; }
            #offer-calc .msf-chat-btn:active { background: rgba(255, 255, 255, .22); }
        }
        @media (max-width: 400px) {
            #offer-calc .msf-chat-btn:not([hidden]) { width: 36px; height: 36px; }
        }

        /* === SS: siglele de brand in butoane === */
        #offer-calc #ui-brand .toggle-btn { min-height: 76px; }
        #offer-calc .ss-brand-logo { display: block; width: auto !important; max-width: 100% !important; object-fit: contain; border: 0; margin: 0; transition: filter .25s ease, opacity .25s ease; }
        #offer-calc .ss-brand-hu { height: 15px !important; }
        #offer-calc .ss-brand-sg { height: 28px !important; }
        #offer-calc #ui-brand .toggle-btn:not(.selected) .ss-brand-logo { filter: grayscale(1); opacity: .5; }
        @media (hover: hover) and (pointer: fine) {
            #offer-calc #ui-brand .toggle-btn:not(.selected):hover .ss-brand-logo { opacity: .8; }
        }
        #offer-calc .ss-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
        @media (max-width: 768px) {
            #offer-calc #ui-brand .toggle-btn { min-height: 68px; }
            #offer-calc .ss-brand-hu { height: 13px !important; }
            #offer-calc .ss-brand-sg { height: 24px !important; }
        }

        /* === SS: tooltipurile "i" pe mobil - latime = ecran minus 16 px pe fiecare parte, centrate pe iconita === */
        @media (max-width: 640px) {
            #offer-calc .config-info-icon.open .roi-tooltip,
            #offer-calc .config-info-icon:focus-within .roi-tooltip {
                left: 50% !important;
                width: calc(100vw - 32px) !important;
            }
        }

        /* === SS: locatia mea + pin pe harta din satelit === */
        #offer-calc .ss-geo-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--primary); font: 600 13px 'Inter', system-ui, -apple-system, sans-serif; cursor: pointer; }
        #offer-calc .ss-geo-btn:hover { background: rgba(21, 128, 61, .08); }
        #offer-calc .ss-pin { margin-top: 12px; }
        #offer-calc .ss-pin-map { width: 100%; height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #e2e8f0; }
        #offer-calc .ss-pin-note { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
        @media (max-width: 768px) { #offer-calc .ss-pin-map { height: 230px; } }
    
        /* === SS: mesajele de limita (invertor, DC/AC, stringuri) se pozitioneaza fata de grupul lor, nu fata de pagina.
           Inainte aveau latimea paginii si produceau scroll orizontal pe desktop chiar si ascunse. === */
        #offer-calc #manualPowerWrap,
        #offer-calc .form-group:has(> .inv-limit-msg) { position: relative; }


                #offer-calc .ss-eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin:0 0 10px}
                #offer-calc .ss-eyebrow b{color:var(--primary);font-weight:700}
                #offer-calc header h1{font-family:inherit;font-size:clamp(30px,3.6vw,44px);font-weight:800;line-height:1.12;letter-spacing:-.015em;color:var(--text-main);margin:0 0 12px;max-width:680px}
                #offer-calc header .subtitle{font-size:15px;line-height:1.65;max-width:680px}
                @media (max-width:768px){#offer-calc header h1{font-size:28px}#offer-calc header .subtitle{font-size:14px}}
            