/* ==========================================================================
   HOME INVERTER CAPACITY CARDS SECTION STYLES
   ========================================================================== */

.ng-capacity-section {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  width: min(100% - 2rem, 1170px);
  margin: 0 auto;
}

.ng-capacity-header-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.ng-capacity-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 780px;
}

.ng-capacity-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #000000;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0;
}

.ng-capacity-subtitle {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ng-coral, #FEAC97);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ng-capacity-header-desc {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

/* Slider Navigation Controls */
.ng-slider-controls {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ng-slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000000;
  transition: all 0.3s ease;
}

.ng-slider-btn:hover {
  background: var(--ng-coral, #FEAC97);
  color: #ffffff;
  border-color: var(--ng-coral, #FEAC97);
  transform: translateY(-2px);
}

.ng-slider-btn svg {
  width: 18px;
  height: 18px;
}

/* Slider Container with Horizontal Scroll */
.ng-capacity-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0.5rem 2rem 0.5rem;
}

.ng-capacity-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ng-capacity-grid::-webkit-scrollbar {
  display: none;
}

/* Individual Card (400px width x 460px height) */
.ng-capacity-card {
  flex: 0 0 400px;
  width: 400px;
  height: 460px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.ng-capacity-card:hover {
  transform: translateY(-4px);
}

/* Card Image Background */
.ng-capacity-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Top Gradient Overlay Only */
.ng-capacity-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Top Text & Plus Icon Container */
.ng-capacity-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.ng-capacity-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.ng-capacity-texts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.ng-capacity-tier {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.ng-capacity-desc {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Interactive Plus Button at Top Right Corner */
.ng-capacity-plus-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ng-capacity-plus-btn:hover {
  background: #FEAC97;
  color: #080d20;
  border-color: #FEAC97;
  transform: rotate(90deg) scale(1.08);
}

@media (max-width: 900px) {
  .ng-capacity-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .ng-slider-controls {
    display: none;
  }
  .ng-capacity-card {
    flex: 0 0 320px;
    width: 320px;
    height: 400px;
  }
}

/* ==========================================================================
   POPUP MODAL STYLES FOR DETAILED TABLE VIEW
   ========================================================================== */
.ng-capacity-modal-pane {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 32, 0.8);
  backdrop-filter: blur(8px);
  z-index: 99999;
  padding: 1rem;
  align-items: center;
  justify-content: center;
}

.ng-capacity-modal-pane.is-active {
  display: flex;
}

.ng-capacity-modal-content {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ng-capacity-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.ng-capacity-modal-top h3 {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #080d20;
  margin: 0;
}

.ng-capacity-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.25rem;
  color: #080d20;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ng-capacity-modal-close:hover {
  background: #e2e8f0;
}

.ng-capacity-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ng-capacity-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.ng-capacity-detail-label {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: #e07050;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ng-capacity-detail-val {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.5;
}

.ng-capacity-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #080d20;
  color: #ffffff;
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}

.ng-capacity-modal-cta:hover {
  background: #e07050;
  transform: translateY(-2px);
}