/* ... existing styles ... */
/* Keep Root and Defaults */
:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --background: #0f172a;
    --background-paper: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.1);
    --option-bg: rgba(255, 255, 255, 0.03);
    --font-main: 'Outfit', sans-serif;
    --blob-1: #6366f1;
    --blob-2: #a855f7;
}

body.light-mode {
    --background: #f0f4f8;
    --background-paper: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-dim: #475569;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-border: rgba(0, 0, 0, 0.05);
    --option-bg: rgba(0, 0, 0, 0.02);
    --blob-1: #a5b4fc;
    --blob-2: #c4b5fd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--background);
    color: var(--text-main);
    transition: 0.3s;
}

.background-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: 0;
    right: 0;
}

/* Nav */
header {
    padding: 20px;
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    border-radius: 50%;
    /* Ensure it doesn't get squashed */
    object-fit: cover;
    /* Optional: border to define edge if logo is white on white */
    /* border: 1px solid rgba(255,255,255,0.1); */
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

/* Wizard Layout */
.configurator-section {
    padding: 100px 20px 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-container {
    max-width: 800px;
    width: 100%;
}

/* Progress */
.wizard-progress {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.progress-bar {
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    flex: 1;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

/* Steps */
.step-card {
    display: none;
    background: var(--background-paper);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    animation: fadeIn 0.4s;
}

.step-card.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.item-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.item-card input {
    display: none;
}

.card-content {
    background: var(--option-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-card:hover .card-content {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.item-card input:checked+.card-content {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.item-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.item-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.item-price {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: auto;
}

.feat-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: left;
    width: 100%;
    margin-top: 10px;
    padding-left: 10px;
}

.feat-list li::before {
    content: "•";
    color: var(--secondary-color);
    margin-right: 5px;
}

/* Parameters */
.params-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.param-group {
    margin-bottom: 20px;
}

.param-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.param-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-option input {
    display: none;
}

.pill-content {
    padding: 8px 16px;
    background: var(--option-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-dim);
    transition: 0.2s;
}

.pill-option input:checked+.pill-content {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Controls */
.wizard-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary-wiz {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary-wiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* Estimate Page */
.estimate-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.estimate-total {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
}

.receipt-list {
    text-align: left;
    background: var(--option-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.receipt-item:last-child {
    border: none;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .glass-nav {
        padding: 15px 20px;
    }

    .configurator-section {
        padding: 80px 15px 20px;
    }

    .step-card {
        padding: 20px;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .estimate-total {
        font-size: 2.2rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 12px;
    }

    .wizard-controls {
        gap: 10px;
    }
}


/* Quantity Control */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 5px;
    border: 1px solid var(--glass-border);
    transition: 0.2s;
}

.qty-control.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--background-paper);
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.qty-display {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Discount Badge Styles */
.discount-badge-container {
    margin-top: 15px;
    border-top: 1px dashed var(--glass-border);
    padding-top: 15px;
}

.discount-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

.discount-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.discount-amount {
    font-weight: 800;
    font-size: 1.2rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
}

/* Enhanced Item Card Hover */
.item-card:hover .card-content {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Smooth Transitions */
.card-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}