/**
 * ALTER EGO Configurator - Wizard Styles
 */

/* ===== MAIN LAYOUT ===== */
.main {
    min-height: calc(100vh - var(--header-height));
}

.configurator-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width) 280px;
    gap: 0 16px;
    max-width: calc(var(--max-width) + 304px + 32px);
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height));
}

/* ===== 3D PREVIEW SECTION ===== */
.preview-section {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
}

.preview-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview3d {
    width: 100%;
    height: 100%;
}

.preview-controls {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    display: flex;
    gap: var(--space-2);
}

.preview-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: var(--text-lg);
}

.preview-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.profile-info-panel {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
    font-size: var(--text-sm);
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-info-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    color: var(--text-secondary);
}

.profile-info-row span:last-child {
    font-weight: 600;
    color: var(--text);
}

.preview-info {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    display: flex;
    gap: var(--space-3);
}

.preview-dimensions,
.preview-surface {
    padding: var(--space-2) var(--space-3);
    background: white;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: var(--shadow);
}

/* ===== PRICE SUMMARY (Sticky) ===== */
.price-summary {
    padding: var(--space-6);
    background: white;
    border-top: 1px solid var(--border);
}

.price-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-4);
}

.price-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.price-value {
    font-family: var(--font-mono);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--primary);
}

.price-breakdown {
    display: none;
}

.lead-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.lead-icon {
    font-size: var(--text-lg);
}

/* ===== WIZARD SECTION ===== */
.wizard-section {
    display: flex;
    flex-direction: column;
    background: white;
}

/* ===== PROGRESS STEPS ===== */
.wizard-progress {
    display: flex;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2);
    min-width: 80px;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    color: var(--text-muted);
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition);
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 500;
}

/* ===== WIZARD CONTENT ===== */
.wizard-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-8) var(--space-6);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: var(--space-8);
}

.step-header h2 {
    margin-bottom: var(--space-2);
    font-size: var(--text-2xl);
}

.step-header p {
    margin: 0;
    color: var(--text-muted);
}

/* ===== PRODUCT GRID (Step 1) ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.product-card.selected {
    border-color: var(--primary);
    background: rgba(0, 49, 104, 0.03);
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    color: var(--primary);
}

.product-card:hover .product-icon {
    color: var(--accent);
}

.product-card.selected .product-icon {
    color: var(--primary);
}

.product-card h3 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.product-card p {
    margin: 0 0 var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.product-price {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: 500;
}

/* ===== STRUCTURE CARDS (Step 2) ===== */
.structure-section {
    margin-bottom: var(--space-6);
}

.structure-section-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-4);
}

.structure-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.structure-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.structure-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(0, 49, 104, 0.08);
    transform: translateY(-2px);
}

.structure-card.selected {
    border-color: var(--primary);
    background: rgba(0, 49, 104, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 49, 104, 0.1);
}

.structure-card.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.structure-card-visual {
    width: 64px;
    height: 72px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.structure-cards--separator .structure-card-visual {
    height: 52px;
}

.structure-card-visual svg {
    width: 100%;
    height: 100%;
}

.structure-card.selected .structure-card-visual,
.structure-card:hover .structure-card-visual {
    color: var(--primary);
}

.structure-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.structure-card-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.structure-card-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.structure-card-delta {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    margin-top: 2px;
}

.structure-auto-hint {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--primary);
    background: rgba(0, 49, 104, 0.04);
    border: 1px solid rgba(0, 49, 104, 0.12);
    border-radius: var(--radius);
}

.structure-auto-hint svg {
    flex-shrink: 0;
}

/* Structure Preview (montant fix/mobile/sans) */
.structure-preview {
    max-width: 320px;
    margin: var(--space-4) auto 0;
    padding: var(--space-3);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.structure-preview svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== DIMENSION FORM (Step 3) ===== */
.dimension-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.dimension-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dim-preview {
    position: relative;
    padding: var(--space-8);
}

.dim-frame {
    width: 180px;
    height: 200px;
    border: 4px solid var(--primary);
    border-radius: var(--radius);
    position: relative;
}

.dim-width-label,
.dim-height-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary);
    background: white;
    padding: 2px 8px;
}

.dim-width-label {
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
}

.dim-height-label {
    right: -48px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.surface-display {
    display: flex;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-top: var(--space-4);
}

.surface-label {
    color: var(--text-muted);
}

.surface-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--primary);
}

/* ===== DESIGN SECTION (Step 3) ===== */
.design-section {
    margin-bottom: var(--space-8);
}

.design-section h3 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text);
}

/* Serie Cards */
.serie-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.serie-card {
    padding: var(--space-4);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.serie-card:hover {
    border-color: var(--primary);
}

.serie-card.selected {
    border-color: var(--primary);
    background: rgba(0, 49, 104, 0.03);
}

.serie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.serie-card h4 {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
}

.serie-badge {
    padding: 2px 8px;
    font-size: var(--text-xs);
    font-weight: 600;
    background: var(--bg-alt);
    color: var(--text-muted);
    border-radius: var(--radius-full);
}

.serie-badge.premium {
    background: var(--accent-light);
    color: var(--accent);
}

.serie-badge.highend {
    background: var(--primary);
    color: white;
}

.serie-card p {
    margin: 0 0 var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.serie-specs {
    list-style: none;
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.serie-specs li::before {
    content: "•";
    margin-right: var(--space-1);
    color: var(--success);
}

/* Subserie Selector */
.subserie-selector {
    margin-top: var(--space-2);
}
.subserie-selector h4 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}
.subserie-cards {
    display: flex;
    gap: 8px;
}
.subserie-card {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.subserie-card:hover {
    border-color: var(--primary);
}
.subserie-card.selected {
    border-color: var(--primary);
    background: var(--primary-light, rgba(37, 99, 235, 0.06));
}
.subserie-card strong {
    display: block;
    font-size: 13px;
}
.subserie-desc {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Color Category Filter */
.color-category-filter,
.glazing-category-filter {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.cat-filter-btn {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.cat-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Color Swatches */
.color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 2px;
}

.color-swatch {
    position: relative;
    width: 42px;
    height: 42px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
}

.color-swatch:hover {
    transform: scale(1.15);
    z-index: 2;
}

.color-swatch.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
}

.swatch-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 49, 104, 0.7);
    color: white;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--transition);
}

.color-swatch.selected .swatch-check {
    opacity: 1;
}

.swatch-premium {
    position: absolute;
    bottom: -1px;
    right: -1px;
    padding: 1px 3px;
    font-size: 10px;
    font-weight: 700;
    background: var(--accent);
    color: white;
    border-radius: 4px 0 4px 0;
    line-height: 1.2;
}

/* Color Info Row */
.color-info-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    flex-wrap: wrap;
}

.color-selected-name {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Hardware Color Badge */
.hardware-color-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-light, #f0f4f8);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary, #555);
}

.hw-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Hardware Cards */
.hardware-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: var(--space-3);
}
.hardware-card {
    position: relative;
    padding: 10px 12px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.hardware-card:hover {
    border-color: var(--primary);
}
.hardware-card.selected {
    border-color: var(--primary);
    background: var(--primary-light, rgba(37, 99, 235, 0.06));
}
.hw-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.hw-card-header strong {
    font-size: 12px;
}
.hw-recommended {
    color: var(--accent);
    font-size: 12px;
}
.hw-designo-badge {
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.hw-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.hw-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hw-card-cat {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hw-card-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}
.hw-card-economy {
    color: var(--success);
}
.hw-default-tag {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border-radius: 0 var(--radius) 0 var(--radius);
}

/* Hardware Color Swatches */
.hardware-color-section h4 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.hardware-color-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.hw-color-swatch {
    position: relative;
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.hw-color-swatch:hover {
    transform: scale(1.15);
}
.hw-color-swatch.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
}
.hw-color-swatch .swatch-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.hardware-color-note {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
    margin: 4px 0 0 0;
}

/* Dimension Warnings */
.dim-warnings {
    margin-bottom: var(--space-3);
}
.dim-warning-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    margin-bottom: 6px;
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
}
.dim-warning-icon {
    font-size: 16px;
}

/* Glazing Cards */
/* ===== GLAZING FILTER BAR ===== */
.glazing-filter-bar {
    margin-bottom: var(--space-3);
}

.glazing-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    margin-bottom: var(--space-2);
    outline: none;
    transition: border-color var(--transition);
}

.glazing-search:focus {
    border-color: var(--primary);
}

.glazing-filter-row {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.glazing-filter-select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    background: var(--bg);
    cursor: pointer;
}

.glazing-filter-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: right;
}

/* ===== GLAZING CARDS GRID ===== */
.glazing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    max-height: 520px;
    overflow-y: auto;
}

.glazing-card {
    position: relative;
    padding: var(--space-3);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
}

.glazing-card:hover {
    border-color: var(--primary);
}

.glazing-card.selected {
    border-color: var(--primary);
    background: rgba(0, 49, 104, 0.03);
}

.glazing-badge {
    position: absolute;
    top: -10px;
    right: 8px;
    padding: 2px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    background: var(--success);
    color: white;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.glazing-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.glazing-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.glazing-type-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--text-muted);
}

.glazing-type-badge.double { background: #e0f2fe; color: #0369a1; }
.glazing-type-badge.triple { background: #fef3c7; color: #92400e; }
.glazing-type-badge.single { background: #f3f4f6; color: #6b7280; }

.glazing-price-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
}

.glazing-winarhi-code {
    margin: 0 0 var(--space-1);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.glazing-composition {
    margin: 0 0 var(--space-1);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.glazing-prices {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text);
    margin-bottom: var(--space-1);
}

.glazing-delta {
    color: var(--success);
    font-weight: 600;
}

.glazing-category {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: lowercase;
    margin: 0;
}

/* ===== OPENING CONFIGURATOR (Step 4) ===== */
.opening-configurator {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
}

.window-schema {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}

.panel-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.panel-preview {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
}

.panel-icon {
    font-size: var(--text-2xl);
    color: var(--primary);
}

.panel-label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    text-align: center;
    padding-bottom: var(--space-1);
}

.panel-opening {
    font-size: var(--text-sm);
}

.panel-opening option:disabled {
    color: var(--text-light);
}

/* Opening hint messages */
.opening-hint {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    line-height: 1.4;
    margin-top: var(--space-3);
}

.opening-hint svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.opening-hint--ok {
    background: var(--success-light);
    color: var(--success);
    align-items: center;
}

.opening-hint--info {
    background: var(--info-light);
    color: var(--text);
    flex-direction: column;
    gap: var(--space-2);
}

.opening-hint-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
    color: var(--info);
}

.opening-hint-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding-left: var(--space-6);
}

.opening-hint-tag {
    display: inline-block;
    padding: 2px 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.opening-hint-tip {
    padding-left: var(--space-6);
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-style: italic;
}

.opening-legend {
    padding: var(--space-4);
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.opening-legend h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text);
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.legend-icon {
    width: 24px;
    text-align: center;
    color: var(--primary);
}

/* ===== OPTIONS LIST (Step 5) ===== */
.options-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.option-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.option-item:hover {
    border-color: var(--primary);
}

.option-item:has(input:checked) {
    border-color: var(--primary);
    background: rgba(0, 49, 104, 0.03);
}

.option-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    min-width: 24px;
}

.option-info {
    flex: 1;
}

.option-info h4 {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.option-info p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.option-lead-time {
    display: inline-block;
    margin-top: var(--space-1);
    padding: 2px 6px;
    font-size: var(--text-xs);
    background: var(--warning-light);
    color: var(--warning);
    border-radius: var(--radius-sm);
}

.option-price {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--accent);
}

/* ===== SUMMARY (Step 8 — Recapitulatif) ===== */
.summary-layout {
    display: flex;
    justify-content: center;
    padding: var(--space-4) 0;
}

.summary-pricing {
    width: 100%;
    max-width: 640px;
    padding: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    color: var(--text);
    overflow: hidden;
}

.pricing-breakdown {
    padding: var(--space-5) var(--space-6);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.pricing-row span:first-child {
    flex: 1;
    min-width: 0;
    color: var(--text-muted);
}

.pricing-row span:last-child {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row.subtotal {
    font-weight: 600;
    padding-top: var(--space-4);
    margin-top: var(--space-2);
    border-top: 2px solid var(--border);
}

.pricing-row.subtotal span:first-child {
    color: var(--text);
}

.pricing-row.pricing-row-discount {
    color: #dc2626;
}
.pricing-row.pricing-row-discount span:first-child,
.pricing-row.pricing-row-discount span:last-child {
    color: #dc2626;
}

/* Total row: accent bar that bleeds to card edges */
.pricing-row.total {
    background: var(--primary);
    color: white;
    padding: var(--space-5) var(--space-6);
    margin: var(--space-4) calc(-1 * var(--space-6)) calc(-1 * var(--space-6));
    border: none;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: var(--text-lg);
    font-weight: 700;
}

.pricing-row.total span:first-child {
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-row.total span:last-child {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: white;
}

/* Dual-engine comparison — hidden by default, visible in tech mode */
.pricing-engine-cmp {
    display: none;
    padding: var(--space-3) var(--space-6);
    background: var(--bg-alt);
    font-size: var(--text-xs);
}
body.tech-mode .pricing-engine-cmp { display: block; }

/* Lead time */
.summary-lead-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Quantity row */
.summary-quantity-row {
    padding: var(--space-3) var(--space-6);
    border-top: 1px solid var(--border);
}

/* Action buttons */
.summary-actions {
    padding: var(--space-3) var(--space-6);
    border-top: 1px solid var(--border);
}

/* Trust notes */
.summary-note {
    padding: var(--space-3) var(--space-6);
    border-top: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.summary-note p {
    margin: var(--space-1) 0;
}

/* ===== WIZARD NAVIGATION ===== */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    background: white;
    border-top: 1px solid var(--border);
}

.wizard-nav .btn {
    min-width: 140px;
}

/* ===== CONFIGURATION PROPERTIES PANEL ===== */
.config-properties {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-alt) 0%, #f8f9fb 100%);
}

.config-props-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.config-props-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.config-props-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1);
}

.prop-chip {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm, 4px);
    border-left: 3px solid var(--primary);
    background: white;
    transition: all 0.2s ease;
}

.prop-chip.incomplete {
    border-left-color: var(--border);
    opacity: 0.45;
}

.prop-chip.active {
    border-left-color: var(--accent, #f59e0b);
    background: #fffbeb;
}

.prop-key {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    line-height: 1;
}

.prop-val {
    font-family: var(--font-mono, monospace);
    font-size: var(--text-xs);
    color: var(--text);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* (Old click-to-edit sections removed — navigation now via config card sidebar) */

.summary-value-muted {
    color: var(--text-muted);
    font-style: italic;
}

.summary-color-chip {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    vertical-align: middle;
}

/* ===== SUMMARY: QUANTITY ROW ===== */
.summary-quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-6);
    border-top: 1px solid var(--border);
}

.summary-quantity-row label {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text);
}

.input-compact {
    max-width: 140px;
}

.input-compact input {
    width: 50px;
    padding: var(--space-2);
    font-size: var(--text-sm);
}

.input-compact .input-btn {
    width: 36px;
    font-size: var(--text-base);
}

/* ===== SUMMARY: TOTAL x QTY ===== */
.summary-total-row {
    padding: var(--space-3) var(--space-6);
}

.summary-total-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}

.summary-total-qty strong {
    font-size: var(--text-lg);
    color: var(--primary);
}

/* ===== SUMMARY: ACTION BUTTONS ===== */
.summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-top: 1px solid var(--border);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.summary-actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    text-decoration: none;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: var(--space-3) var(--space-6);
    background: var(--primary);
    color: white;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .configurator-layout {
        grid-template-columns: 1fr;
    }

    .preview-section {
        position: relative;
        top: 0;
        height: 50vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .preview-section {
        height: 40vh;
        min-height: 280px;
        max-height: 350px;
    }

    .wizard-content {
        padding: var(--space-6) var(--space-4);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .dimension-form {
        grid-template-columns: 1fr;
    }

    .serie-cards {
        grid-template-columns: 1fr;
    }

    .structure-cards {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-3);
    }

    .structure-card {
        padding: var(--space-3) var(--space-2);
    }

    .structure-card-visual {
        width: 48px;
        height: 56px;
    }

    .structure-cards--separator .structure-card-visual {
        height: 40px;
    }

    .glazing-cards {
        grid-template-columns: 1fr;
    }

    .hardware-cards {
        grid-template-columns: 1fr 1fr;
    }

    .opening-configurator {
        grid-template-columns: 1fr;
    }

    .summary-layout {
        padding: var(--space-2) 0;
    }

    .opening-schemas {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== MOBILE 480px ========== */
@media (max-width: 480px) {
    .progress-step { min-width: 60px; padding: var(--space-1); gap: 2px; }
    .step-label { font-size: 9px; line-height: 1.2; }
    .step-header h2 { font-size: var(--text-xl); }
    .step-header p { font-size: var(--text-sm); }
    .wizard-content { padding: var(--space-6) var(--space-3); }
    .structure-cards { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
    .structure-card { padding: var(--space-3) var(--space-2); }
    .hardware-cards { grid-template-columns: 1fr; }
    .opening-schemas { grid-template-columns: 1fr; gap: var(--space-3); }
    .color-swatches { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); max-height: 160px; gap: 4px; }
    .serie-card { padding: var(--space-3); }
    .serie-card h4 { font-size: var(--text-sm); }
}

/* ========== MOBILE 360px (iPhone SE) ========== */
@media (max-width: 360px) {
    .progress-step { min-width: 50px; }
    .step-label { display: none; }
    .dim-frame { width: 140px; height: 160px; }
    .product-card { padding: var(--space-4); }
}

/* ========== OPENING SCHEMA CARDS (I26 v2 — Step 4) ========== */

.opening-schemas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.schema-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.schema-card:hover:not(.disabled) {
    border-color: var(--accent);
    background: var(--bg-hover, rgba(0,0,0,0.02));
}

.schema-card.selected {
    border-color: var(--accent);
    background: var(--accent-bg, rgba(37, 99, 235, 0.06));
    box-shadow: 0 0 0 1px var(--accent);
}

.schema-card.popular {
    order: -1;
}

.schema-card.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.schema-card-visual {
    width: 64px;
    height: 80px;
    color: var(--text);
}

.schema-card-visual svg {
    width: 100%;
    height: 100%;
}

.schema-card.selected .schema-card-visual {
    color: var(--accent);
}

.schema-card-label {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
}

.schema-card.selected .schema-card-label {
    color: var(--accent);
    font-weight: 600;
}

.schema-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
}

/* ========== PROGRESSIVE DISCLOSURE (I28) ========== */

.expand-section {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light, var(--border));
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: none;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--text-sm, 0.875rem);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-expand:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg, rgba(37, 99, 235, 0.04));
}

.learn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    color: var(--accent);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.learn-link:hover {
    background: var(--accent);
    color: #fff;
}

.learn-link svg { flex-shrink: 0; }
.learn-link.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.expand-content {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-alt, var(--bg));
    border-radius: var(--radius-md);
}

.expand-note {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-secondary);
    margin-top: var(--space-3);
}

/* Panel widths integrated block (I28 expand Step 3) */

.pw-customize-label {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: var(--text-primary, var(--text));
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-light, var(--border));
}

.panel-width-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.panel-width-row label {
    min-width: 80px;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
}

.panel-width-input {
    width: 80px;
    text-align: center;
}

.input-unit {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-secondary);
}

.pw-total {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-light, var(--border));
    font-variant-numeric: tabular-nums;
}

/* ========== In-step Config Recap + Price (Options avancées) ========== */

.step-advanced {
    margin-top: var(--space-4, 1rem);
}

.step-config-recap {
    margin-top: var(--space-4, 1rem);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-light, var(--border));
    background: linear-gradient(180deg, var(--bg-alt, #f8f9fb) 0%, #f8f9fb 100%);
    border-radius: var(--radius-sm, 4px);
}

.step-config-recap .config-recap-title {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.step-config-recap .config-recap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1);
}

.step-config-recap .prop-chip {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm, 4px);
    border-left: 3px solid var(--primary);
    background: white;
    transition: all 0.2s ease;
}

.step-config-recap .prop-chip.incomplete {
    border-left-color: var(--border);
    opacity: 0.45;
}

.step-config-recap .prop-chip.active {
    border-left-color: var(--accent, #f59e0b);
    background: #fffbeb;
}

.step-price-inline {
    margin-top: var(--space-3, 0.75rem);
    padding: var(--space-3) var(--space-4);
    background: var(--primary, #2563eb);
    color: white;
    border-radius: var(--radius, 8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-price-inline .price-inline-label {
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.step-price-inline .price-inline-value {
    font-size: var(--text-xl, 1.25rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.step-price-inline .price-inline-lead {
    font-size: var(--text-xs, 0.75rem);
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
}

/* ===== RIGHT SIDEBAR (Config + Price) ===== */
.sidebar-right {
    position: sticky;
    top: calc(var(--header-height) + 80px);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== CONFIGURATION SUMMARY CARD ===== */
.config-card {
    background: white;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.config-card-header {
    padding: 10px 16px;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #6b7280);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.config-card-body {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border, #e5e7eb);
}

.config-prop {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: white;
    cursor: pointer;
    transition: background 0.15s;
}

.config-prop:hover {
    background: #eff6ff;
}

.config-prop.active:hover {
    background: #fef3c7;
}

.config-prop.config-prop-fixed {
    cursor: default;
}

.config-prop.config-prop-fixed:hover {
    background: white;
}

.config-prop-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #9ca3af);
    line-height: 1;
}

.config-prop-value {
    font-family: var(--font-mono, monospace);
    font-size: var(--text-xs, 0.75rem);
    font-weight: 500;
    color: var(--text, #1f2937);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.config-prop.incomplete .config-prop-value {
    color: var(--text-muted, #9ca3af);
}

.config-prop.active {
    background: #fffbeb;
}

.config-prop.active .config-prop-label {
    color: var(--accent, #ef7c1a);
}

/* ===== FLOATING PRICE CARD (V7) ===== */
.price-card {
    background: white;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: opacity 0.2s;
}

.price-card-header {
    padding: 12px 16px;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #6b7280);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.price-card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.4;
}

.price-card-row .pc-label {
    color: var(--text-secondary, #6b7280);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}

.price-card-row .pc-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--text-primary, #111827);
}

.price-card-row.pc-dimmed .pc-label,
.price-card-row.pc-dimmed .pc-value {
    opacity: 0.35;
}

.price-card-row.pc-separator {
    border-top: 1px solid var(--border, #e5e7eb);
    padding-top: 6px;
    margin-top: 4px;
}

.price-card-total {
    padding: 12px 16px;
    background: var(--primary, #2563eb);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-card-total .pc-total-label {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.price-card-total .pc-total-value {
    font-size: var(--text-xl, 1.25rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.price-card-total .pc-confidence {
    font-size: var(--text-xs, 0.75rem);
    opacity: 0.7;
    margin-top: 2px;
}

/* Mobile: bottom bar */
@media (max-width: 768px) {
    .configurator-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-right {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        flex-direction: row;
        gap: 0;
    }
    .config-card {
        display: none;
    }
    .price-card {
        flex: 1;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    }
    .price-card-body {
        display: none;
    }
    .price-card-header {
        display: none;
    }
}

/* Tablet: hide sidebar, revert to 2-col */
@media (max-width: 1200px) and (min-width: 769px) {
    .configurator-layout {
        grid-template-columns: 1fr var(--sidebar-width);
    }
    .sidebar-right {
        display: none;
    }
}

/* ── Pricing Model Toggle (P/B) ── */
.price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Hidden by default — visible only in tech mode (?tech=1) */
.pc-model-toggle {
    display: none;
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 2px;
}
body.tech-mode .pc-model-toggle { display: flex; }
.pc-model-btn {
    border: none;
    background: transparent;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    transition: all 0.15s;
}
.pc-model-btn.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.pc-model-btn:hover:not(.active) {
    color: rgba(255,255,255,0.8);
}

/* BOM detail rows (slightly smaller) */
.price-card-row.pc-bom-detail .pc-label {
    padding-left: 6px;
    font-size: 0.78rem;
    opacity: 0.9;
}

/* Recap: engine comparison (white card context) */
.pricing-engine-cmp {
    margin: 0;
    padding: var(--space-3) var(--space-6);
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    font-size: var(--text-xs);
}
.engine-cmp-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.engine-cmp-row.engine-cmp-active {
    color: var(--text);
    font-weight: 600;
}
.engine-cmp-delta {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: monospace;
}
