/* ═══════════════════════════════════════════════
   BKG EnergiePlanner — Design System
   Electric Blue house style
   ═══════════════════════════════════════════════ */

:root {
    --bg-color: #0f1115;
    --card-bg: rgba(26, 30, 36, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-primary: #e2e8f0;
    --primary: #00aaff;
    --primary-hover: #0088dd;
    --primary-glow: rgba(0, 170, 255, 0.15);
    --secondary: #334155;
    --secondary-hover: #475569;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 170, 255, 0.15);
    --electric: #00aaff;
}

/* ═══════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════ */
[data-theme="light"] {
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-primary: #1e293b;
    --primary: #0088dd;
    --primary-hover: #006bb3;
    --primary-glow: rgba(0, 136, 221, 0.12);
    --secondary: #e2e8f0;
    --secondary-hover: #cbd5e1;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 12px rgba(0, 136, 221, 0.08);
    --electric: #0088dd;
}

/* ─── Body ─── */
[data-theme="light"] body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 136, 221, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(226, 232, 240, 0.5) 0px, transparent 50%);
    color: var(--text-main);
}

/* ─── Typography ─── */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: #0f172a;
}

/* ─── Header ─── */
[data-theme="light"] .app-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .logo-text {
    color: #1e293b;
}

[data-theme="light"] .step-indicator {
    background: rgba(0, 136, 221, 0.06);
    border-color: rgba(0, 136, 221, 0.2);
    color: #64748b;
}

/* ─── Cards ─── */
[data-theme="light"] .card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

[data-theme="light"] .card:hover {
    border-color: #cbd5e1;
}

[data-theme="light"] .card.accent {
    background: linear-gradient(135deg, rgba(0, 136, 221, 0.04) 0%, #ffffff 100%);
    border-top: 2px solid var(--primary);
}

[data-theme="light"] .card.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, #ffffff 100%);
}

[data-theme="light"] .card.warning {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.04) 0%, #ffffff 100%);
}

[data-theme="light"] .card.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, #ffffff 100%);
}

/* ─── Inputs ─── */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 221, 0.1);
}

[data-theme="light"] input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] select option {
    background: #ffffff;
    color: #1e293b;
}

/* ─── Toggle switch ─── */
[data-theme="light"] .toggle-slider {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

[data-theme="light"] .toggle-slider::before {
    background: #94a3b8;
}

[data-theme="light"] .toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 136, 221, 0.2);
    border-color: var(--primary);
}

[data-theme="light"] .toggle-switch input:checked + .toggle-slider::before {
    background: var(--primary);
}

/* ─── Buttons ─── */
[data-theme="light"] .btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

[data-theme="light"] .btn-icon {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .btn-icon:hover {
    background: rgba(0, 136, 221, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

/* ─── Progress bar ─── */
[data-theme="light"] .progress-step::before {
    background: #e2e8f0;
}

[data-theme="light"] .progress-dot {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

[data-theme="light"] .progress-step.active .progress-dot {
    box-shadow: 0 0 12px rgba(0, 136, 221, 0.25);
}

/* ─── Info bar ─── */
[data-theme="light"] .info-bar {
    background: rgba(0, 136, 221, 0.04);
    border-color: rgba(0, 136, 221, 0.12);
}

/* ─── Detail card ─── */
[data-theme="light"] .detail-card {
    background: linear-gradient(135deg, rgba(0, 136, 221, 0.03) 0%, #ffffff 100%);
    border-color: rgba(0, 136, 221, 0.15);
}

/* ─── Selection items ─── */
[data-theme="light"] .selection-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .selection-item:hover {
    background: rgba(0, 136, 221, 0.03);
    border-color: rgba(0, 136, 221, 0.3);
}

[data-theme="light"] .selection-item.selected {
    background: rgba(0, 136, 221, 0.06);
    border-color: var(--primary);
}

/* ─── Big value ─── */
[data-theme="light"] .big-value {
    color: #0f172a;
}

/* ─── Status messages ─── */
[data-theme="light"] .status-msg.info-msg {
    background: rgba(0, 136, 221, 0.05);
    border-color: rgba(0, 136, 221, 0.15);
}

[data-theme="light"] .status-msg.success-msg {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

[data-theme="light"] .status-msg.warning-msg {
    background: rgba(234, 179, 8, 0.05);
    border-color: rgba(234, 179, 8, 0.2);
}

[data-theme="light"] .status-msg.error-msg {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

/* ─── Chart wrapper ─── */
[data-theme="light"] .profile-chart-wrapper {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* ─── Radio cards ─── */
[data-theme="light"] .radio-card-inner {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .radio-card-inner:hover {
    background: rgba(0, 136, 221, 0.03);
    border-color: rgba(0, 136, 221, 0.3);
}

[data-theme="light"] .radio-card input:checked + .radio-card-inner {
    background: rgba(0, 136, 221, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 136, 221, 0.08), inset 0 0 0 1px rgba(0, 136, 221, 0.15);
}

/* ─── Overview totals ─── */
[data-theme="light"] .overview-total-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .overview-total-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-theme="light"] .overview-total-item.total {
    background: rgba(0, 136, 221, 0.03);
    border-color: rgba(0, 136, 221, 0.2);
}

/* ─── EV specs bar ─── */
[data-theme="light"] .ev-specs-bar {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* ─── Modal ─── */
[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .modal-content,
[data-theme="light"] .modal-box {
    background: #ffffff;
    border-color: #e2e8f0;
}

/* ─── Project cards ─── */
[data-theme="light"] .project-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .project-card:hover {
    background: rgba(0, 136, 221, 0.03);
    border-color: rgba(0, 136, 221, 0.2);
}

/* ─── WP Calculator sections ─── */
[data-theme="light"] .wpc-section {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .wpc-type-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .wpc-type-card:hover {
    background: rgba(0, 136, 221, 0.03);
}

[data-theme="light"] .wpc-type-card.selected {
    background: rgba(0, 136, 221, 0.06);
    border-color: var(--primary);
}

/* ─── Theme toggle icon visibility ─── */
.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

[data-theme="light"] .theme-icon-dark { display: block; }
[data-theme="light"] .theme-icon-light { display: none; }

/* ─── Dual logo for dark/light theme ─── */
.logo-light { display: none; }
.logo-dark  { display: block; }

[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark  { display: none; }

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 170, 255, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.8) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-text span {
    font-weight: 400;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-indicator {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(0, 170, 255, 0.08);
    border: 1px solid rgba(0, 170, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* ═══════════════════════════════════════
   WIZARD CONTAINER
   ═══════════════════════════════════════ */
.wizard-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ═══════════════════════════════════════
   PROGRESS TRACK (U-shaped serpentine)
   ═══════════════════════════════════════ */
.progress-track {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    position: relative;
}

/* ── Row (shared between top & bottom) ── */
.progress-row {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.progress-row-top {
    padding-right: 50px; /* room for curve past labels */
}

.progress-row-bottom {
    flex-direction: row-reverse;
    margin-top: 0.25rem;
    padding-right: 50px; /* mirror top row */
}

/* ── Curved SVG connector (dynamically drawn) ── */
.progress-curve-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

/* ── Step item ── */
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    padding-bottom: 1.75rem;
}

/* Connector line between dots (top row: left→right) */
.progress-row-top .progress-step::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--card-border);
    z-index: 0;
}
/* Last step in top row: no connector (SVG curve takes over) */
.progress-row-top .progress-step:last-child::after {
    display: none;
}

/* Bottom row: connector lines (left-pointing, because row-reverse) */
.progress-row-bottom .progress-step::after {
    content: '';
    position: absolute;
    top: 14px;
    right: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--card-border);
    z-index: 0;
}
/* First child in DOM = rightmost visually → keep connector to next step */
/* Last child in DOM = leftmost visually → no trailing connector */
.progress-row-bottom .progress-step:last-child::after {
    display: none;
}
.progress-row-top .progress-step:first-child::before {
    display: none;
}

/* ── Dot ── */
.progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary);
    border: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 1;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.progress-step.active .progress-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.4);
    transform: scale(1.15);
}

/* Visited (no changes) — light blue */
.progress-step.visited .progress-dot {
    background: #0d2a3d;
    border-color: rgba(0, 170, 255, 0.5);
    color: var(--primary);
}
.progress-step.visited::after {
    background: rgba(0, 170, 255, 0.3) !important;
}

/* Completed (visited + modified) — solid blue */
.progress-step.completed .progress-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.progress-step.completed::after {
    background: var(--primary) !important;
}

/* ── Label ── */
.progress-label {
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.progress-step.active .progress-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-step.visited .progress-label {
    color: rgba(0, 170, 255, 0.7);
}

.progress-step.completed .progress-label {
    color: var(--text-main);
}

/* Hover effect on all dots for clickability */
.progress-step:hover .progress-dot {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.2);
}

.progress-step.active:hover .progress-dot {
    transform: scale(1.15);
}

/* ─── Incomplete warning modal ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ═══════════════════════════════════════
   STEP CONTENT
   ═══════════════════════════════════════ */
.step-content {
    animation: stepFadeIn 0.4s ease;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-title svg {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.step-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.card.accent {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.08) 0%, rgba(26, 30, 36, 0.8) 100%);
    border-top: 2px solid var(--primary);
}

.card.success {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(26, 30, 36, 0.8) 100%);
}

.card.warning {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.06) 0%, rgba(26, 30, 36, 0.8) 100%);
}

.card.danger {
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(26, 30, 36, 0.8) 100%);
}

/* ═══════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.form-grid.align-bottom {
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

input, select, textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.15);
}

input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 2.5rem;
}

select option {
    background: var(--secondary);
    color: var(--text-main);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ═══════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════ */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: #8899aa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(0, 170, 255, 0.25);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--primary);
}

.toggle-label {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 170, 255, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 170, 255, 0.08);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════
   NAVIGATION BUTTONS
   ═══════════════════════════════════════ */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

/* ═══════════════════════════════════════
   INFO BAR
   ═══════════════════════════════════════ */
.info-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: rgba(0, 170, 255, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 170, 255, 0.15);
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.info-bar svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.info-bar .info-label {
    color: var(--text-muted);
}

.info-bar .info-value {
    font-weight: 600;
    color: var(--primary);
}

.info-bar .info-sep {
    color: var(--card-border);
}

/* ═══════════════════════════════════════
   BIG VALUE DISPLAY
   ═══════════════════════════════════════ */
.big-value {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0.5rem 0;
}

.big-value .unit {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.25rem;
}

.big-value.primary {
    color: var(--primary);
}

/* ═══════════════════════════════════════
   SELECTION LISTS
   ═══════════════════════════════════════ */
.selection-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.selection-item {
    padding: 1rem;
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

.selection-item:hover {
    border-color: rgba(0, 170, 255, 0.35);
    background: rgba(0, 170, 255, 0.05);
    transform: translateY(-2px);
}

.selection-item.selected {
    border-color: var(--primary);
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 16px rgba(0, 170, 255, 0.15), inset 0 0 0 1px rgba(0, 170, 255, 0.2);
    color: var(--primary);
    font-weight: 600;
}

.selection-item .item-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.selection-item .item-label {
    font-size: 0.88rem;
}

.selection-item .item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.selection-item.phase-warn {
    border-color: rgba(245, 158, 11, 0.4);
    opacity: 0.75;
}

.selection-item.phase-warn:hover {
    border-color: rgba(245, 158, 11, 0.65);
    opacity: 1;
}

.item-phase-warn {
    font-size: 0.65rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════
   DETAIL CARD
   ═══════════════════════════════════════ */
.detail-card {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.06) 0%, rgba(26, 30, 36, 0.9) 100%);
    border: 1px solid rgba(0, 170, 255, 0.25);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

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

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ═══════════════════════════════════════
   STATUS MESSAGES
   ═══════════════════════════════════════ */
.status-msg {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.status-msg svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.status-msg.success-msg {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.status-msg.warning-msg {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--warning);
}

.status-msg.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.status-msg.info-msg {
    background: rgba(0, 170, 255, 0.08);
    border: 1px solid rgba(0, 170, 255, 0.25);
    color: var(--primary);
}

/* ═══════════════════════════════════════
   CHART AREA
   ═══════════════════════════════════════ */
.chart-container {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    max-height: 300px;
}

/* ═══════════════════════════════════════
   SUMMARY TABLE
   ═══════════════════════════════════════ */
.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table tr {
    border-bottom: 1px solid var(--card-border);
}

.summary-table tr:last-child {
    border-bottom: none;
}

.summary-table td {
    padding: 0.65rem 0;
    font-size: 0.9rem;
}

.summary-table td:first-child {
    color: var(--text-muted);
    width: 45%;
}

.summary-table td:last-child {
    font-weight: 600;
    color: var(--text-main);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .wizard-container {
        padding: 1rem 1rem 3rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

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

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

    .selection-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .progress-label {
        display: none;
    }

    .progress-dot {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .big-value {
        font-size: 2.2rem;
    }

    .nav-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .step-indicator {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}

/* ═══════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════ */
@media print {
    body {
        background: #fff !important;
        color: #1a1a1a !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .app-header,
    .progress-track,
    .nav-buttons,
    .no-print {
        display: none !important;
    }

    .wizard-container {
        max-width: 100%;
        padding: 0;
    }

    .card {
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4 {
        color: #1a1a1a !important;
    }

    .detail-value, .summary-table td:last-child {
        color: #1a1a1a !important;
    }

    .big-value {
        color: #1a1a1a !important;
    }

    .big-value.primary {
        color: #0066cc !important;
    }
}

/* ═══════════════════════════════════════
   Energy Breakdown Card (Step 2)
   ═══════════════════════════════════════ */
.energy-summary-card {
    border: 1px solid rgba(0, 170, 255, 0.2);
    background: rgba(0, 170, 255, 0.03);
}

.energy-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.breakdown-label {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breakdown-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    min-width: 80px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.breakdown-unit {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 60px;
}

.breakdown-add .breakdown-label { color: #22c55e; }
.breakdown-add .breakdown-value { color: #22c55e; }

.breakdown-sub .breakdown-label { color: #f59e0b; }
.breakdown-sub .breakdown-value { color: #f59e0b; }

.breakdown-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.25rem 0;
}

.breakdown-total .breakdown-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}
.breakdown-total .breakdown-value {
    font-size: 1.3rem;
    color: var(--primary);
}

.kaal-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    font-size: 0.85rem;
    line-height: 1.4;
}

[data-theme="light"] .energy-summary-card {
    border-color: rgba(0, 100, 200, 0.15);
    background: rgba(0, 100, 200, 0.03);
}

[data-theme="light"] .breakdown-value {
    color: var(--text-main);
}

.subsection-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(0, 170, 255, 0.06);
    border: 1px solid rgba(0, 170, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}
.subsection-info i,
.subsection-info svg {
    color: var(--primary);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}
