/* Corsair-Inspired Main Configurator Layout */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo .lm {
    color: #3b82f6;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: #666;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

nav a.active {
    color: #fff;
    background: rgba(59,130,246,0.15);
}

/* Main Container */
.configurator-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 120px 60px 80px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-header h1 span {
    color: #3b82f6;
}

.page-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Workspace Grid */
.workspace {
    display: grid;
    grid-template-columns: 320px 1fr 380px;
    gap: 40px;
    min-height: 600px;
}

/* Panel Base Styles */
.panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    overflow: hidden;
}

.panel-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 600;
}

.panel-badge {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.panel-content {
    padding: 24px;
}

/* Products Panel */
.products-panel .panel-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Summary Panel */
.summary-panel {
    display: flex;
    flex-direction: column;
}

.summary-items {
    flex: 1;
    padding: 0 28px;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.summary-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.summary-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.summary-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.summary-item-type {
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

.summary-empty {
    color: #444;
    font-size: 14px;
    padding: 40px 0;
    text-align: center;
}

/* Totals */
.summary-totals {
    margin-top: auto;
    padding: 28px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.summary-label {
    font-size: 13px;
    color: #666;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
}

.summary-value.setup {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.summary-value.monthly {
    font-size: 24px;
    color: #22c55e;
}

.summary-value .per-month {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px;
    margin-top: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59,130,246,0.3);
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
}

/* Compatibility Status */
.compatibility {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 20px 28px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 10px;
}

.compatibility.warning {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.2);
}

.compatibility-icon {
    font-size: 16px;
}

.compatibility-text {
    font-size: 13px;
    color: #22c55e;
}

.compatibility.warning .compatibility-text {
    color: #f59e0b;
}

/* Instructions */
.instructions {
    text-align: center;
    margin-top: 50px;
    padding: 20px 32px;
    background: rgba(59,130,246,0.05);
    border: 1px solid rgba(59,130,246,0.1);
    border-radius: 16px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.instructions strong {
    color: #3b82f6;
}

/* Footer */
footer {
    padding: 60px;
    text-align: center;
    color: #333;
    font-size: 14px;
    margin-top: 80px;
}

footer span {
    color: #3b82f6;
}

/* Popover */
.popover {
    position: fixed;
    z-index: 1000;
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    width: 300px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    pointer-events: auto;
}

.popover-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.popover-icon {
    font-size: 36px;
}

.popover-title {
    font-size: 18px;
    font-weight: 700;
}

.popover-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
}

.popover-price {
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 20px;
}

.popover-btn {
    width: 100%;
    padding: 14px;
    background: #22c55e;
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popover-btn:hover {
    background: #16a34a;
}

.popover-btn.remove {
    background: transparent;
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

.popover-btn.remove:hover {
    background: rgba(239,68,68,0.1);
}

/* Responsive */
@media (max-width: 1400px) {
    .workspace {
        grid-template-columns: 280px 1fr 340px;
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .workspace {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gateway-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .configurator-container {
        padding: 100px 20px 60px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    header {
        padding: 16px 20px;
    }
    
    nav a {
        padding: 8px 12px;
        font-size: 12px;
    }
}
