.pc-builder-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #f8fafc;
    font-family: system-ui, sans-serif;
  }
  
  .pc-builder-buildname-row,
  .pc-builder-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
  }
  
  .pc-builder-buildname-row {
    justify-content: flex-start;
    gap: 15px;
  }
  
  .pc-builder-link-row {
    justify-content: flex-start;
    gap: 15px;
    position: relative;
  }
  
  .pc-builder-buildname-display {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 180px;
  }
  
  .pc-builder-buildname-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
  }
  
  .pc-builder-edit-icon {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .pc-builder-edit-icon:hover {
    background: #e9ecef;
    color: #495057;
  }
  
  .pc-builder-buildname-input {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 4px;
    padding: 3px 6px;
    outline: none;
    min-width: 180px;
  }
  
  .pc-builder-linkbox {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    flex: 1;
    max-width: 600px;
  }
  
  .pc-builder-linkinput {
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 13px;
    color: #495057;
    background: transparent;
    outline: none;
  }
  
  .pc-builder-linkinput:focus {
    background: #f8f9fa;
  }
  
  .pc-builder-copy {
    background: #f8f9fa;
    border: none;
    padding: 8px 10px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .pc-builder-copy:hover {
    background: #e9ecef;
    color: #495057;
  }
  
  .pc-builder-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  
  .pc-builder-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
  }
  
  .pc-builder-btn.danger {
    background: #dc3545;
  }
  
  .pc-builder-btn.danger:hover {
    background: #c82333;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
  }
  
  /* Remove button specific styling - golden/yellow color */
  .pc-builder-remove-btn {
    background: #f59e0b !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }
  
  .pc-builder-remove-btn:hover {
    background: #d97706 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2) !important;
  }
  
  /* Disabled state for remove buttons */
  .pc-builder-remove-btn:disabled {
    background: #9ca3af !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
  }
  
  .pc-builder-remove-btn:disabled:hover {
    background: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  .pc-builder-status-row {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding: 12px 16px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
  }
  .pc-builder-card {
    border-radius: 12px;
    box-shadow: 0 1px 7px rgba(35,103,218,0.04);
    padding: 24px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
  }
  .pc-builder-wattage-card {
    flex: 0 0 30%;
    background: #f7fafc;
    border: 1.5px solid #e5e7eb;
    align-items: flex-start;
    transition: all 0.2s ease;
  }
  
  .pc-builder-wattage-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .pc-builder-compat-card {
    flex: 1 1 70%;
    min-width: 0;
    height: 100%;
    border: 1.5px solid #e5e7eb;
    background: #d1fae5;
    transition: background 0.3s, border-color 0.3s;
  }
  .compat-green {
    background: #d1fae5 !important;
    border-color: #10b981 !important;
  }
  .compat-yellow {
    background: #fef9c3 !important;
    border-color: #facc15 !important;
  }
  .compat-red {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
  }
  .compat-blue {
    background: #dbeafe !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
  }
  .pc-builder-card-label {
    font-size: 15px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
  }
  .pc-builder-card-value {
    font-size: 24px;
    font-weight: 700;
  }
  .pc-builder-card-value a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
  }
  .pc-builder-card-value a:hover {
    opacity: 0.8;
  }
  .pc-builder-components-table {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,103,218,0.04);
    padding: 0 0 24px 0;
  }
  .pc-builder-table-header,
  .pc-builder-table-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1.5px solid #f1f1f1;
    padding: 0 0 0 0;
    min-height: 56px;
  }
  .pc-builder-table-header {
    font-size: 15px;
    font-weight: 700;
    color: #444;
    background: #f6f7fa;
    border-radius: 12px 12px 0 0;
    height: 48px;
  }
  .pc-builder-table-row:last-child {
    border-bottom: none;
  }
  .pc-builder-col-title {
    flex: 0 0 200px;
    text-align: left;
    display: flex;
    align-items: center;
    font-size: 16px;
    padding-left: 22px;
    font-weight: 500;
  }
  .pc-builder-col-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 16px;
    min-height: 56px;
  }
  
  /* Selected Component Row Layout */
  .pc-builder-selected-component-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 18px;
    min-height: 56px;
    padding: 6px 0;
    margin-bottom: 8px;
  }
  
  .pc-builder-selected-component-row:last-child {
    margin-bottom: 0;
  }
  
  .pc-builder-component-img {
    flex: 0 0 60px;
    width: 60px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .pc-builder-component-img img {
    width: 50px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
  }
  
  .pc-builder-no-img {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
  }
  
  .pc-builder-component-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .pc-builder-component-title a {
    color: #2367da;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .pc-builder-component-title a:hover {
    text-decoration: underline;
  }
  
  .pc-builder-component-action {
    flex: 0 0 auto;
    margin-left: 10px;
  }
  
  .select-btn {
    background: #f3f4f6;
    color: #2367da;
    border: 1.5px solid #e5e7eb;
    font-size: 14px;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    margin-left: 0;
    min-width: 80px;
    text-align: center;
  }
  
  .select-btn:hover {
    background: #2367da;
    color: #fff;
  }
  
  /* RAM specific styling for multiple components */
  .pc-builder-col-action .pc-builder-selected-component-row + .select-btn {
    margin-top: 8px;
  }
  
  /* Add More button styling */
  .add-more-btn {
    margin-top: 12px !important;
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    font-weight: 500;
  }
  
  .add-more-btn:hover {
    background: #059669 !important;
    border-color: #059669 !important;
  }
  
  /* Add More row styling */
  .pc-builder-add-more-row {
    margin-top: 12px;
    padding-top: 8px;
  }
  
  @media (max-width: 1200px) {
    .pc-builder-buildname-row,
    .pc-builder-link-row,
    .pc-builder-status-row {
      max-width: 100%;
      padding-left: 16px;
      padding-right: 16px;
    }
    
    .pc-builder-components-table {
      border-radius: 0;
      box-shadow: none;
    }
  }
  
  @media (max-width: 768px) {
    .pc-builder-buildname-row,
    .pc-builder-link-row {
      flex-direction: column;
      gap: 12px;
      align-items: stretch;
    }
    
    .pc-builder-linkbox {
      max-width: none;
    }
    
    .pc-builder-link-row {
      gap: 12px;
    }
    
    .pc-builder-buildname-display {
      min-width: auto;
      justify-content: center;
    }
    
    .pc-builder-buildname-input {
      min-width: auto;
      width: 100%;
    }
    
    .pc-builder-status-row { 
      flex-direction: column; 
      gap: 12px;
    }
    
    .pc-builder-wattage-card, 
    .pc-builder-compat-card { 
      width: 100%; 
    }
    
    .pc-builder-col-title { 
      flex: 0 0 120px; 
      font-size: 14px;
      padding-left: 12px;
    }
    
    .pc-builder-col-action { 
      padding-right: 12px;
      flex-direction: column;
    }
    
    .pc-builder-table-header, 
    .pc-builder-table-row { 
      min-height: 48px; 
    }
    
    /* Mobile responsive for selected components */
    .pc-builder-selected-component-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      padding: 12px 0;
      min-height: auto;
    }
    
    .pc-builder-component-img {
      flex: 0 0 auto;
    }
    
    .pc-builder-component-title {
      width: 100%;
      white-space: normal;
      line-height: 1.4;
    }
    
    .pc-builder-component-title a {
      white-space: normal;
      line-height: 1.4;
    }
    
    .pc-builder-component-action {
      width: 100%;
      margin-left: 0;
    }
    
    .pc-builder-component-action .pc-builder-remove-btn {
      width: 100%;
    }
    
    .select-btn {
      width: 100%;
    }
  }
  
  @media (max-width: 480px) {
    .pc-builder-buildname-row {
      padding: 0 12px;
    }
    
    .pc-builder-buildname-text {
      font-size: 18px;
      max-width: 250px;
      padding: 6px 8px;
    }
    
    .pc-builder-buildname-input {
      font-size: 18px;
      max-width: 250px;
      padding: 6px 8px;
    }
    
    .pc-builder-edit-icon {
      padding: 6px;
    }
    
    .pc-builder-edit-icon svg {
      width: 14px;
      height: 14px;
    }
    
    .pc-builder-link-row {
      padding: 0 12px;
    }
    
    .pc-builder-linkbox {
      max-width: 100%;
    }
    
    .pc-builder-col-title { 
      flex: 0 0 100px; 
      font-size: 13px;
      padding-left: 8px;
    }
    
    .pc-builder-col-action { 
      padding-right: 8px;
      flex-direction: column;
    }
  }
  
  .pc-builder-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
  }
  
  .pc-builder-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  /* Remove old .pc-builder-selected-component styles */
  .pc-builder-selected-component, .pc-builder-selected-component img { display: none !important; }
  
  /* Actions Group and History Popup */
  .pc-builder-actions-group {
    position: relative;
    display: flex;
    gap: 16px;
  }
  
  .pc-builder-history-popup {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    z-index: 1001;
  }
  
  .pc-builder-history-popup.is-active {
    display: block;
  }
  
  .pc-builder-history-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .pc-builder-history-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }
  
  .pc-builder-history-body {
    max-height: 600px;
    overflow-y: auto;
    padding: 8px;
  }
  
  .pc-builder-history-body p {
    margin: 0;
    padding: 12px;
    color: #6b7280;
    text-align: center;
  }
  
  /* New History Table Styles */
  .pc-builder-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  
  .pc-builder-history-table th {
    background: #f9fafb;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .pc-builder-history-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
  }
  
  .pc-builder-history-table tr:last-child td {
    border-bottom: none;
  }
  
  .pc-builder-history-table tr:hover {
    background: #f9fafb;
  }
  
  .history-action {
    color: #374151;
    line-height: 1.4;
    font-weight: 500;
  }
  
  .history-time {
    color: #9ca3af;
    font-size: 12px;
    white-space: nowrap;
  }
  
  .history-hash {
    text-align: center;
  }
  
  .history-hash .no-hash {
    color: #d1d5db;
    font-style: italic;
  }
  
  /* Legacy list styles for backward compatibility */
  .pc-builder-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .pc-builder-history-list li {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }
  
  .pc-builder-history-list li:last-child {
    border-bottom: none;
  }
  
  .history-entry-text {
    flex: 1;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
  }
  
  .history-entry-date {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
  }
  
  /* Build link styling in history */
  .history-build-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
  }
  
  .history-build-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
  }
  
  /* Saved Builds Page Styles */
  .pc-builder-saved-builds-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
  }
  
  .pc-builder-saved-builds-header h1 {
    margin: 0 0 16px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
  }
  
  .pc-builder-saved-builds-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .pc-builder-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
  }
  
  .pc-builder-empty-state p {
    margin: 0 0 24px 0;
    font-size: 18px;
    line-height: 1.5;
  }
  
  .pc-builder-builds-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .pc-builder-build-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
  }
  
  .pc-builder-build-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .pc-builder-build-info {
    flex: 1;
  }
  
  .pc-builder-build-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
  }
  
  .pc-builder-build-date {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
  }
  
  .pc-builder-build-actions {
    display: flex;
    gap: 8px;
  }
  
  .pc-builder-build-actions .pc-builder-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  @media (max-width: 768px) {
    .pc-builder-saved-builds-header {
      margin-bottom: 24px;
      padding: 24px 16px;
    }
    
    .pc-builder-saved-builds-header h1 {
      font-size: 24px;
    }
    
    .pc-builder-build-item {
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
    }
    
    .pc-builder-build-actions {
      justify-content: center;
    }
  }
  
  /* Wattage Overlay Styles */
  .wattage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
  .wattage-overlay-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 70vh;
    overflow: hidden;
    }
    
  .wattage-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
  }
  
  .wattage-overlay-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    }
  
  .wattage-overlay-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .wattage-overlay-close:hover {
    background: #e5e7eb;
    color: #374151;
  }
  
  .wattage-overlay-body {
    padding: 16px 20px;
    max-height: 50vh;
    overflow-y: auto;
  }

/* Save Build Overlay */
.pcbuilder-save-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcbuilder-save-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  overflow: hidden;
}
.pcbuilder-save-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fa;
}
.pcbuilder-save-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}
.pcbuilder-save-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
}
.pcbuilder-save-body { padding: 16px 18px; }
.pcbuilder-save-label { display:block; font-weight:600; margin-bottom:6px; }
.pcbuilder-save-input, .pcbuilder-save-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.pcbuilder-save-input { margin-bottom: 12px; }
.pcbuilder-save-mode { margin-bottom: 10px; }
.pcbuilder-save-radio { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.pcbuilder-save-replace { margin-bottom: 12px; }
.pcbuilder-save-actions { display:flex; gap:10px; justify-content:flex-end; }

.is-hidden { display: none !important; }
  
  .wattage-breakdown {
    display: flex;
      flex-direction: column;
    gap: 2px;
    }
    
  .wattage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    }
    
  .wattage-component {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    flex: 1;
    margin-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    }
  
  .wattage-value {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
    flex-shrink: 0;
  }
  
  .wattage-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #d1fae5;
    border-radius: 6px;
    border: 2px solid #d1fae5;
    margin-top: 8px;
  }
  
  .wattage-total .wattage-component {
    font-size: 14px;
    color: #065f46;
    font-weight: 600;
  }
  
  .wattage-total .wattage-value {
    font-size: 14px;
    color: #065f46;
    font-weight: 700;
  }
  
  .wattage-recommended {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fed7aa;
    border-radius: 6px;
    border: 2px solid #fed7aa;
    margin-top: 8px;
  }
  
  .wattage-recommended .wattage-component {
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
  }
  
  .wattage-recommended .wattage-value {
    font-size: 14px;
    color: #92400e;
    font-weight: 700;
  }
  
  /* Compatibility Messages Styles */
  .compatibility-message-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .compat-message-label,
  .compat-message-text {
    display: inline;
  }
  
  .compatibility-caution {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
  }
  
  .compatibility-issue {
    background: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
  }
  
  .compatibility-disclaimer {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
  }
  
  .compatibility-warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
  }
  
  .compatibility-neutral {
    background: #f3f4f6;
    border-left: 4px solid #9ca3af;
    color: #374151;
}
.compatibility-neutral .compat-index {
    background: #9ca3af;
    color: #fff;
}

/* Mobile responsive styles for compatibility messages */
@media (max-width: 768px) {
  .compatibility-message-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }
  
  .compat-message-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .compat-message-text {
    display: block;
    width: 100%;
    line-height: 1.5;
    word-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .compatibility-message-item {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .compat-message-label {
    font-size: 13px;
  }
  
  .compat-message-text {
    font-size: 13px;
  }
}
  
  /* Compatibility Container Styles */
  .pc-builder-compatibility-container,
  .pc-builder-motherboard-compatibility {
    width: 100%;
    margin: 0 auto 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,103,218,0.04);
    padding: 0 0 24px 0;
    border: none;
  }
  
  .pc-builder-compatibility-header h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
  }
  
  .pc-builder-compatibility-content {
    min-height: 20px;
  }
  
  .pc-builder-compatibility-notes {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }
  
  /* Mobile responsive adjustments for history popup */
  @media (max-width: 768px) {
    .pc-builder-history-popup {
      width: 400px;
      max-width: calc(100vw - 20px);
    }
    
    .pc-builder-history-table {
      font-size: 12px;
    }
    
    .pc-builder-history-table th,
    .pc-builder-history-table td {
      padding: 8px 4px;
    }
    
    .history-action {
      max-width: 120px;
      word-wrap: break-word;
    }
    
    .history-time {
      font-size: 11px;
    }
  }
  
  @media (max-width: 480px) {
    .pc-builder-history-popup {
      width: 320px;
      max-width: calc(100vw - 20px);
    }
  }
  
  /* Mobile responsive adjustments for wattage overlay */
  @media (max-width: 768px) {
    .wattage-overlay-content {
      max-width: calc(100vw - 20px);
      width: 95%;
      margin: 20px 10px;
    }
    
    .wattage-overlay-body {
      padding: 12px 16px;
    }
    
    .wattage-item {
      padding: 10px 12px;
    }
    
    .wattage-component {
      font-size: 12px;
      white-space: normal;
      word-wrap: break-word;
      line-height: 1.3;
    }
    
    .wattage-value {
      font-size: 12px;
    }
  }
  
  /* Ensure .compat-index is always styled the same and vertically centered */
  .compat-index {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 7px !important;
    font-weight: bold !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 20px !important;
    vertical-align: middle !important;
    background: #ccc !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
    padding: 0 !important;
  }
  .compatibility-issue .compat-index,
  .pc-builder-processor-box .compat-index,
  .pc-builder-ram-module-box .compat-index {
    background: #ef4444 !important;
    color: #fff !important;
  }
  .compatibility-caution .compat-index {
    background: #f59e0b !important;
    color: #fff !important;
  }
  .compatibility-disclaimer .compat-index {
    background: #3b82f6 !important;
    color: #fff !important;
  }
  
  .pc-builder-socket-row.caution,
  .pc-builder-ram-row.caution {
    background: #fef3c7 !important;
    border-left: 4px solid #f59e0b !important;
    color: #92400e !important;
  }
  
  .pc-builder-socket-row.caution .compat-index,
  .pc-builder-ram-row.caution .compat-index {
    background: #f59e0b !important;
    color: #fff !important;
  }
  
  .compat-index--issue {
    background: #ef4444 !important;
    color: #fff !important;
  }
  .compat-index--caution {
    background: #f59e0b !important;
    color: #fff !important;
  }
  .compat-index--disclaimer {
    background: #3b82f6 !important;
    color: #fff !important;
  }
  
  /* Force index color by type, even inside incompatible or caution rows */
  .pc-builder-socket-row .compat-index--caution,
  .pc-builder-ram-row .compat-index--caution {
    background: #f59e0b !important;
    color: #fff !important;
  }
  .pc-builder-socket-row .compat-index--disclaimer,
  .pc-builder-ram-row .compat-index--disclaimer {
    background: #3b82f6 !important;
    color: #fff !important;
  }
  .pc-builder-socket-row .compat-index--issue,
  .pc-builder-ram-row .compat-index--issue {
    background: #ef4444 !important;
    color: #fff !important;
  }

/* Gallery No-Image Placeholder Styles */
.gallery-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
}

.gallery-no-image-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.gallery-no-image-text {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Responsive adjustments for gallery no-image */
@media (max-width: 768px) {
    .gallery-no-image {
        min-height: 150px;
        padding: 30px 15px;
    }
    
    .gallery-no-image-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .gallery-no-image-text {
        font-size: 14px;
    }
}

/* Archive No-Image Placeholder Styles */
.archive-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

/* Responsive adjustments for archive no-image */
@media (max-width: 768px) {
    .archive-no-image {
        font-size: 11px;
    }
}