.customer-packages-page {
  color: #1f2937;
}

.customer-packages-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.customer-packages-hero-copy,
.customer-packages-panel,
.customer-packages-summary-card,
.customer-packages-table-wrap,
.customer-packages-requests,
.customer-packages-checkout-note {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.customer-packages-hero-copy {
  padding: 24px;
}

.customer-packages-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.customer-packages-hero-copy h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #111827;
  font-weight: 800;
}

.customer-packages-hero-copy p {
  color: #4b5563;
  max-width: 820px;
  margin: 0;
  line-height: 1.55;
}

.customer-packages-hero-actions {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 20px;
  background: #0f172a;
  color: #fff;
  border-radius: 8px;
}

.customer-packages-hero-actions .btn {
  justify-content: center;
}

.customer-packages-hero-note {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.customer-packages-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.customer-packages-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.customer-packages-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex: 0 0 44px;
}

.customer-packages-summary-icon.primary {
  background: #2563eb;
}

.customer-packages-summary-icon.success {
  background: #16a34a;
}

.customer-packages-summary-icon.warning {
  background: #f59e0b;
}

.customer-packages-summary-icon.danger {
  background: #dc2626;
}

.customer-packages-summary-value {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  color: #111827;
}

.customer-packages-summary-label {
  color: #6b7280;
  font-size: 13px;
  margin-top: 4px;
}

.customer-packages-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.customer-packages-search {
  position: relative;
  flex: 1;
}

.customer-packages-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

.customer-packages-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  height: 42px;
  padding: 0 14px 0 40px;
  outline: none;
}

.customer-packages-select {
  width: 190px;
  height: 42px;
}

.customer-packages-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.customer-packages-table-wrap,
.customer-packages-requests {
  padding: 16px;
}

.customer-packages-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-packages-section-title h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.customer-packages-table th {
  border-top: 0;
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.customer-packages-table td {
  vertical-align: middle;
}

.customer-packages-customer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-packages-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e0ecff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 38px;
}

.customer-packages-main-text {
  color: #111827;
  font-weight: 700;
}

.customer-packages-sub-text {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

.customer-packages-progress {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  width: 120px;
  max-width: 100%;
}

.customer-packages-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.customer-packages-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.customer-packages-status.active {
  color: #166534;
  background: #dcfce7;
}

.customer-packages-status.expiring {
  color: #92400e;
  background: #fef3c7;
}

.customer-packages-status.expired,
.customer-packages-status.cancelled,
.customer-packages-status.refunded {
  color: #991b1b;
  background: #fee2e2;
}

.customer-packages-empty {
  display: none;
  text-align: center;
  padding: 36px 16px;
  color: #6b7280;
}

.customer-packages-empty i {
  display: block;
  color: #9ca3af;
  font-size: 38px;
  margin-bottom: 8px;
}

.customer-packages-request-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.customer-packages-request-item:last-child {
  margin-bottom: 0;
}

.customer-packages-request-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.customer-packages-request-note {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}

.customer-packages-modal-section {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.customer-packages-modal-section h6 {
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.customer-packages-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 120px 42px;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.customer-packages-checkout-note {
  margin-top: 12px;
  padding: 12px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
}

@media (max-width: 1199px) {
  .customer-packages-hero,
  .customer-packages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .customer-packages-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-packages-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-packages-select {
    width: 100%;
  }

  .customer-packages-service-row {
    grid-template-columns: 1fr;
  }
}
