:root {
    /* Premium Dark Solar Energy Color Palette */
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;

    --bg-main: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-subtle: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Screen reader only (honeypot etc.) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 340px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-subtle);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.logo-container {
    margin-bottom: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 4px;
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

.sidebar h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 800;
}

.sidebar h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.sidebar hr {
    border: none;
    height: 2px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar input[type="number"],
.sidebar select {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar input[type="number"]:hover,
.sidebar select:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.12);
}

.sidebar input[type="number"]:focus,
.sidebar select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Range Inputs */
.sidebar input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sidebar input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--bg-secondary);
    transition: all 0.2s ease;
}

.sidebar input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.sidebar input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--bg-secondary);
}

/* Inline Range Input (tappable number beside slider label) */
.inline-range-input {
    width: 3ch;
    background: transparent;
    border: none;
    border-bottom: 1.5px dashed var(--text-muted);
    color: var(--primary);
    font-size: inherit;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    padding: 0 1px;
    margin: 0 1px;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    transition: border-color 0.2s;
}
.inline-range-input::-webkit-outer-spin-button,
.inline-range-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.inline-range-input:focus {
    border-bottom-color: var(--primary);
    border-bottom-style: solid;
}

/* Range Labels (min/max) */
.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Number Input Wrapper */
.number-input-wrapper {
    position: relative;
}

.clear-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.2s ease;
}

.clear-input:hover {
    background: #dc2626;
}

.number-input-wrapper:hover .clear-input {
    display: flex;
}

.help-text {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 0.4rem;
    display: block;
    font-style: italic;
}

/* Info Panel */
.info-panel {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.info-panel p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.info-panel small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-group:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

/* Shift Selector */
.shift-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.shift-option {
    padding: 0.75rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.shift-option:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

.shift-option.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.shift-option small {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Sidebar Action Buttons */
.sidebar-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.btn-reset {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-share {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: 1100px;
}

.main-header {
    margin-bottom: 1.5rem;
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.project-tag {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Intro Box */
.intro-box {
    margin-bottom: 2rem;
}

.intro-box > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.alert-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-box.warning p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.alert-box.warning p:last-child {
    margin-bottom: 0;
}

.contact-highlight {
    color: var(--accent-light) !important;
    font-weight: 700;
}

/* ==================== STATUS ALERTS ==================== */
#statusAlerts {
    margin: 1.5rem 0;
}

.status-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.status-alert.scale-alert {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-light);
}

.status-alert.space-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-light);
}

/* ==================== METRICS GRID ==================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-top-color: var(--primary-light);
}

.metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.metric-value.updating {
    opacity: 0.5;
}

/* ==================== ANALYSIS SECTION ==================== */
.analysis-section {
    margin: 2.5rem 0;
}

.analysis-section h3,
.details-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
}

.result-card.primary {
    border-top: 4px solid var(--primary);
}

.result-card.secondary {
    border-top: 4px solid var(--accent);
}

.result-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.sc-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.savings-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    margin: 0.75rem 0;
    line-height: 1;
}

.offset-badge {
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
}

.yearly-est {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== CONFIG DETAIL CLASSES ==================== */
.config-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.config-success {
    color: var(--success-light);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--success);
}

.config-list {
    list-style: none;
    padding: 0;
}

.config-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.config-list li:last-child {
    border-bottom: none;
}

/* ==================== DETAILS SECTION ==================== */
.details-section {
    margin: 2.5rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.details-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.details-box h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.details-box ul {
    list-style: none;
}

.details-box li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-box li:last-child {
    border-bottom: none;
}

.details-box strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ==================== FOOTER / CTA ==================== */
.app-footer {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1f3a 100%);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.app-footer h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    border: none;
    padding: 0;
}

.app-footer > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ==================== INFO & STATUS BOXES ==================== */
.info-box {
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid rgba(220, 38, 38, 0.3);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #fca5a5;
    font-weight: 600;
}

.disabled-msg,
.off-grid-msg {
    text-align: center;
    padding: 1.5rem;
}

.savings-placeholder {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0.75rem 0;
}

.off-grid-badge {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: inline-block;
    margin: 0.75rem 0;
}

/* ==================== TOOLTIPS ==================== */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: help;
    margin-left: 0.5rem;
    position: relative;
    font-style: normal;
}

.tooltip-icon:hover,
.tooltip-icon:focus {
    background: var(--primary-light);
    outline: none;
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: normal;
    width: max-content;
    max-width: 250px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    line-height: 1.4;
    border: 1px solid var(--border-color);
}

.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-secondary);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.tooltip-icon:hover::after,
.tooltip-icon:hover::before,
.tooltip-icon:focus::after,
.tooltip-icon:focus::before {
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* ==================== FOCUS VISIBLE INDICATORS ==================== */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.sidebar input:focus-visible,
.sidebar select:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.shift-option:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* ==================== MOBILE TOGGLE ==================== */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--primary);
    color: white;
    border: none;
    min-width: 52px;
    min-height: 52px;
    padding: 0 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}
.mobile-toggle .mobile-toggle-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.mobile-toggle .mobile-toggle-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mobile-toggle:hover {
    background: var(--primary-light);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 360px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        padding: 5rem 1.5rem 2rem;
        width: 100%;
    }

    .main-header h1 {
        font-size: 1.75rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .results-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .help-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 4.5rem 1rem 1.5rem;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 1.25rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .savings-value {
        font-size: 2rem;
    }

    .result-card,
    .details-box {
        padding: 1.25rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .app-footer {
        padding: 1.75rem;
        border-radius: var(--radius-lg);
    }

    .app-footer h3 {
        font-size: 1.25rem;
    }

    .btn-cta {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .alert-box.warning {
        padding: 1rem;
    }

    .alert-box.warning p {
        font-size: 0.85rem;
    }

    .shift-selector {
        grid-template-columns: 1fr;
    }

    .roi-grid {
        grid-template-columns: 1fr !important;
    }

    .report-cta-box {
        padding: 1.5rem !important;
    }

    .modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 1rem !important;
        padding: 1.5rem !important;
    }

    .help-text {
        font-size: 0.8rem;
    }

    .sidebar-actions {
        flex-direction: column;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .sensitivity-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        padding: 1rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .wizard-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }

    .wizard-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .metric-card:hover,
    .btn-cta:hover,
    .btn-report:hover {
        transform: none;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    body {
        background: white;
        color: black;
        background-image: none;
    }

    .sidebar,
    .mobile-toggle,
    .sidebar-overlay,
    .report-cta-section,
    .btn-cta,
    .modal-overlay,
    .wizard-overlay,
    .btn-wizard,
    #statusAlerts {
        display: none !important;
    }

    .chart-container,
    .comparison-table-wrapper,
    .sensitivity-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .comparison-table th {
        background: #f3f4f6;
        color: #333;
    }

    .comparison-table td,
    .sensitivity-table td {
        color: black;
    }

    .comp-active {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .sensitivity-card h5 {
        background: #f3f4f6;
        color: #333;
        border-bottom-color: #ccc;
    }

    .sensitivity-table th {
        color: #666;
    }

    .sensitivity-baseline td {
        color: #1d4ed8;
    }

    .main-content {
        padding: 0;
        max-width: 100%;
    }

    .app-container {
        display: block;
    }

    .metric-card,
    .result-card,
    .details-box {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: black;
        break-inside: avoid;
    }

    .metric-label,
    .sc-desc,
    .yearly-est {
        color: #666;
    }

    .metric-value,
    .result-card h4,
    .details-box strong {
        color: black;
    }

    .savings-value {
        color: #059669;
    }

    .offset-badge {
        background: #059669;
    }

    .app-footer {
        background: #f3f4f6;
        color: black;
        box-shadow: none;
    }

    .app-footer h3,
    .app-footer p,
    .contact-info p {
        color: black;
    }

    .alert-box.warning {
        background: #fffbeb;
        border-color: #d97706;
    }

    .alert-box.warning p {
        color: black;
    }

    .roi-disclaimer {
        color: #666;
        background: #f9fafb;
    }
}

/* ==================== ROI SECTION ==================== */
.roi-section {
    margin: 2rem 0;
}

.roi-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--success);
}

.roi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.roi-card {
    border-top-color: var(--success) !important;
}

.roi-card.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--success);
}

.roi-card.highlight .metric-value {
    color: var(--success);
}

.cost-breakdown {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.roi-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

/* 25-year lifetime breakdown */
.lifetime-breakdown {
    margin-top: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.lifetime-breakdown summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, var(--text-muted));
    list-style: none;
    user-select: none;
}
.lifetime-breakdown summary::-webkit-details-marker { display: none; }
.lifetime-breakdown summary::before {
    content: '▸ ';
    transition: transform 0.2s;
    display: inline-block;
}
.lifetime-breakdown[open] summary::before { content: '▾ '; }
.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}
.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0;
}
.breakdown-row span { color: var(--text-muted); }
.breakdown-row strong { color: var(--text-primary, #fff); font-weight: 700; }
.breakdown-row strong.positive { color: var(--success, #10b981); }
.breakdown-row strong.planned { color: var(--accent, #f59e0b); }
.breakdown-row strong.negative { color: var(--danger, #ef4444); }
.breakdown-divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 0.3rem 0;
}

/* Breakdown summary headline (always visible) */
.lifetime-breakdown summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.breakdown-summary-label {
    color: var(--text-muted);
    font-weight: 600;
}
.breakdown-summary-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--success);
}
.breakdown-summary-value.negative { color: var(--danger); }
.breakdown-summary-hint {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Intro lead + new Quick Setup Wizard CTA */
.intro-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

/* Tech specs section (moved below ROI) */
.specs-section {
    margin: 2rem 0;
}
.specs-section h3 {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

/* Advanced analysis wrapper (collapsible compare + sensitivity) */
.advanced-analysis {
    margin: 2.5rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.advanced-analysis > summary {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    list-style: none;
    padding: 0.25rem 0;
    letter-spacing: 0.02em;
    user-select: none;
}
.advanced-analysis > summary::-webkit-details-marker { display: none; }
.advanced-analysis > summary::after {
    content: '▸';
    float: right;
    transition: transform 0.2s;
    color: var(--text-muted);
}
.advanced-analysis[open] > summary::after { content: '▾'; }
.advanced-analysis[open] > summary {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}
.advanced-analysis > section { margin: 1.5rem 0; }
.advanced-analysis > section:first-of-type { margin-top: 0; }

/* Sidebar Advanced Options (collapsible) */
.advanced-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.advanced-section > summary {
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    list-style: none;
    padding: 0.5rem 0;
    user-select: none;
}
.advanced-section > summary::-webkit-details-marker { display: none; }
.advanced-section > summary::before {
    content: '▸ ';
    transition: transform 0.2s;
    display: inline-block;
    margin-right: 0.25rem;
}
.advanced-section[open] > summary::before { content: '▾ '; }
.advanced-content {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==================== REPORT CTA SECTION ==================== */
.report-cta-section {
    margin: 2.5rem 0;
}

.report-cta-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.report-cta-box h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.report-cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-report {
    display: inline-block;
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-report:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ==================== MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-content > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.form-actions {
    margin-top: 1.5rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: var(--primary-light);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Success State */
#reportSuccess {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

#reportSuccess h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

#reportSuccess p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-close-modal {
    padding: 0.75rem 2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: var(--border-color);
}

/* ==================== SAVINGS CHART ==================== */
.chart-section {
    margin: 2.5rem 0;
}

.chart-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.chart-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    position: relative;
}

.chart-container canvas {
    display: block;
    width: 100%;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.legend-savings::before { background: var(--primary); }
.legend-cost::before { background: var(--danger); }
.legend-breakeven::before { background: var(--accent); }

/* ==================== SYSTEM COMPARISON ==================== */
.comparison-section {
    margin: 2.5rem 0;
}

.comparison-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--bg-subtle);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 700;
}

.comp-metric-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comp-active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-light);
    font-weight: 700;
}

.comp-active-header {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary) !important;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== SENSITIVITY ANALYSIS ==================== */
.sensitivity-section {
    margin: 2.5rem 0;
}

.sensitivity-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

.sensitivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.sensitivity-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sensitivity-card h5 {
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.sensitivity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.sensitivity-table th {
    padding: 0.6rem 0.75rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.sensitivity-table td {
    padding: 0.6rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.sensitivity-table th:first-child,
.sensitivity-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.sensitivity-baseline {
    background: rgba(59, 130, 246, 0.08);
}

.sensitivity-baseline td {
    font-weight: 700;
    color: var(--primary-light);
}

.sensitivity-better td:nth-child(4) {
    color: var(--success);
}

.sensitivity-worse td:nth-child(4) {
    color: var(--danger);
}

.sensitivity-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== WIZARD ==================== */
.wizard-overlay {
    z-index: 2100;
}

.wizard-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
}

.wizard-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.wizard-progress {
    margin-bottom: 2rem;
}

.wizard-progress-bar {
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.wizard-progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: var(--wizard-progress, 16.67%);
}

.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.wizard-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wizard-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.wizard-dot.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.wizard-step {
    display: none;
    min-height: 200px;
}

.wizard-step.active {
    display: block;
}

.wizard-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wizard-step > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-option {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
}

.wizard-option:hover {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

.wizard-option.selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
}

.wizard-option strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.wizard-option small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.wizard-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wizard-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wizard-input-group input[type="number"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wizard-input-group input[type="number"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.wizard-input-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wizard-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--bg-secondary);
}

.wizard-input-group input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--bg-secondary);
}

.wizard-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.wizard-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.wizard-summary {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.wizard-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wizard-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wizard-summary-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.wizard-summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wizard-summary-value.highlight-success {
    color: var(--success);
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.wizard-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.wizard-prev {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.wizard-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wizard-next {
    background: var(--primary);
    color: white;
}

.wizard-next:hover {
    background: var(--primary-light);
}

.wizard-finish {
    background: var(--success);
    color: white;
}

.wizard-finish:hover {
    background: var(--success-light);
}

.btn-wizard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
    font-family: inherit;
}

.btn-wizard:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}
