.pcbuilder-grid { display: grid; grid-template-columns: 320px 1fr 340px; gap: 16px; padding: 16px; }
.pcbuilder-library, .pcbuilder-aside, .pcbuilder-canvas { background: #f7f9fc; border: 1px solid #e1e7ee; border-radius: 16px; padding: 12px; box-shadow: 8px 8px 18px #d9dee4, -8px -8px 18px #ffffff; }
.library-header { display: grid; gap: 8px; }
.library-list { height: 60vh; overflow: auto; display: grid; gap: 6px; margin-top: 8px; }
.library-row { padding: 10px; background: #f7f9fc; border: 1px solid #e1e7ee; border-radius: 14px; cursor: pointer; color: #0f1724; box-shadow: 6px 6px 12px #d8dde3, -6px -6px 12px #ffffff; transition: transform .12s ease, box-shadow .12s ease; }
.library-row:hover { box-shadow: inset 5px 5px 10px #e3e7ec, inset -5px -5px 10px #ffffff; }
.load-more { margin-top: 8px; width: 100%; background: #27c5a1; color: #fff; border: none; border-radius: 10px; padding: 8px 12px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.slot { min-height: 100px; border: 1px solid #e1e7ee; border-radius: 16px; padding: 8px; position: relative; background: #f7f9fc; box-shadow: 6px 6px 12px #d8dde3, -6px -6px 12px #ffffff; }
.slot > span { position: absolute; top: 6px; left: 8px; color: #7f87b7; font-size: 12px; }
.slot-item { margin-top: 24px; }
.slot-chip { background: #f7f9fc; border: 1px solid #e1e7ee; padding: 8px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #1a1a1a; box-shadow: 6px 6px 12px #d8dde3, -6px -6px 12px #ffffff; }
.slot-chip button { background: transparent; border: none; color: #ff8552; cursor: pointer; font-size: 16px; }
.alerts { display: grid; gap: 8px; }
.alerts .issue { background: #fff3f0; border: 1px solid #ffd6c7; padding: 8px; border-radius: 10px; color: #b84e2d; cursor: pointer; box-shadow: 3px 3px 6px #e8e8e8, -3px -3px 6px #ffffff; }
.alerts .ok { background: #f0fff9; border: 1px solid #c9f2e7; padding: 8px; border-radius: 10px; color: #2f7f6d; box-shadow: 3px 3px 6px #e8e8e8, -3px -3px 6px #ffffff; }
.power-summary { margin-top: 12px; color: #27c5a1; }

/* Selected Product Specs Display */
.selected-product-specs {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0fbf7, #eef8f3);
    border: 1px solid #bfeee0;
}

.specs-section-title {
    color: #064e3b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #d6eef0;
}

.spec-label {
    color: #27c5a1;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.spec-value {
    color: #0f1724;
    font-size: 13px;
    font-weight: 500;
    word-break: break-word;
}

.no-specs {
    color: #7f87b7;
    font-size: 12px;
    text-align: center;
    padding: 8px;
}

/* Build summary styles */
.build-summary { display: grid; gap: 12px; padding: 8px; }
.build-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 12px; background: linear-gradient(180deg,#fbfdff,#f4f8fb); border: 1px solid #e6eef6; box-shadow: 4px 4px 10px #e6edf3, -4px -4px 10px #ffffff; transition: transform .12s ease, box-shadow .12s ease; }
.build-col { display: flex; flex-direction: column; gap: 4px; }
.build-col .part-title { font-size: 14px; color: #0f1724; }
.build-col .part-specs { font-size: 12px; color: #6b7280; }
.build-actions { display: flex; gap: 8px; align-items: center; }
.change-btn, .remove-btn { background: #fff; border: 1px solid #d6eef0; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: #0f1724; box-shadow: 2px 2px 6px #e9eef3; display: inline-flex; gap: 8px; align-items: center; }
.change-btn:hover { background: #eef9ff; transform: translateY(-2px); }
.remove-btn { color: #c33c2f; border-color: #fdecea; }
.remove-btn:hover { background: #fff6f6; transform: translateY(-2px); }
.build-row.empty { opacity: 0.7; }
.build-summary-footer { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border-top: 1px dashed #e6eef6; margin-top: 6px; }

/* Saved builds */
.saved-builds { margin-top: 12px; padding: 8px; border-radius: 12px; background: linear-gradient(180deg,#ffffff,#fbfdff); border: 1px solid #e9f0f7; }
.saved-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid #eef4fb; }
.saved-row button { background: #fff; border: 1px solid #e1e7ee; padding: 6px 8px; border-radius: 8px; cursor: pointer; }

/* Secondary action button style */
.secondary { background: linear-gradient(180deg,#f0fbf7,#eef8f3); border: 1px solid #bfeee0; color: #064e3b; padding: 8px 12px; border-radius: 10px; cursor: pointer; box-shadow: 2px 2px 8px rgba(6,78,59,0.06); }
.secondary:hover { transform: translateY(-2px); }

/* Responsive tweaks */
@media (max-width: 1000px) {
	.pcbuilder-grid { grid-template-columns: 1fr; }
	.library-list { height: 36vh; }
	/* Stack order on mobile: library (picker) -> build summary (canvas) -> compatibility (aside) -> motherboard usage */
	.pcbuilder-library { order: 1; }
	.pcbuilder-canvas { order: 2; }
	.pcbuilder-aside { order: 3; }
	.motherboard-usage.grid-item { order: 4; }
	/* Ensure motherboard usage spans full width */
	.motherboard-usage { grid-column: 1 / -1; }
	.build-summary-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
	.library-header { grid-template-columns: 1fr; }
	.library-row { padding: 8px; font-size: 13px; }
	.build-row { padding: 8px; flex-direction: column; align-items: stretch; }
	.build-actions { justify-content: flex-end; }
}

/* Toast notifications */
#toast-container { position: fixed; right: 20px; bottom: 20px; z-index: 10000; display: grid; gap: 8px; }
.toast { background: #0f1724; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: 0 6px 18px rgba(2,6,23,0.2); opacity: 0; transform: translateY(8px); transition: transform .18s cubic-bezier(.2,.9,.2,1), opacity .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: linear-gradient(180deg,#0f5132,#064e3b); }
.toast.info { background: linear-gradient(180deg,#0f3b6b,#0a4f7a); }
.toast.error { background: linear-gradient(180deg,#6b0f0f,#a61f1f); }

/* Motherboard usage cards */
.motherboard-usage { margin: 18px 16px; padding: 12px; border-radius: 12px; background: linear-gradient(180deg,#ffffff,#fbfdff); border: 1px solid #e9f0f7; }
.usage-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.usage-card { background: #f7fbff; border: 1px solid #e6f0fb; padding: 10px; border-radius: 10px; box-shadow: 4px 4px 12px rgba(6,78,59,0.03); }
.usage-card h4 { margin: 0 0 8px 0; font-size: 14px; color: #064e3b; }
.usage-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.usage-list li { padding: 6px 8px; background: #fff; border-radius: 8px; border: 1px solid #eef6f3; font-size: 13px; color: #0f1724; }
.usage-empty { color: #6b7280; font-size: 14px; }
.usage-note { margin-top: 8px; color: #6b7280; font-size: 13px; }

/* Beginner notes / neumorphic cards */
.builder-notes { margin: 18px 16px; padding: 12px; border-radius: 12px; background: linear-gradient(180deg,#ffffff,#fbfdff); border: 1px solid #e9f0f7; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.note-card { background: #f7f9fc; border: 1px solid #e1e7ee; border-radius: 14px; padding: 14px; box-shadow: 8px 8px 18px #d9dee4, -8px -8px 18px #ffffff; color: #0f1724; }
.note-card h4 { margin: 0 0 8px 0; font-size: 15px; color: #064e3b; }
.note-card p { margin: 0; color: #475569; font-size: 13px; line-height: 1.35; }
.note-card ul { margin: 6px 0 0 18px; color: #475569; font-size: 13px; }

@media (max-width: 1000px) {
	.notes-grid { grid-template-columns: 1fr; }
	.builder-notes { grid-column: 1 / -1; }
}

