@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

html, body {
  background: #ffffff !important;
  background-color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

/* ── Packages Page ── */
.packages-page {
  margin-top: 95px;
  padding: 36px 30px 80px;
  background: #ffffff !important;
  min-height: calc(100vh - 95px);
  box-sizing: border-box;
}

/* ── Page Header ── */
.packages-header {
  text-align: center;
  margin-bottom: 24px;
}

.packages-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.packages-subtitle {
  font-size: clamp(14px, 2.5vw, 17px);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.packages-desc {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}

/* ── Filter Tabs ── */
.packages-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 25px;
  border: 1.5px solid #dcdcdc;
  background: #fff;
  color: #444;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.filter-btn.active {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.3);
}

/* ── Product Grid ── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ── Package Card ── */
.package-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}

.package-img {
  height: 200px;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #f2f2f2;
}

.package-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.package-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  z-index: 2;
}

.badge-budget { background: #e65100; }
.badge-gaming { background: #2e7d32; }
.badge-excellent { background: #1565c0; }
.badge-best { background: #c0392b; }

.package-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  margin-bottom: 14px;
}

.package-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.package-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.package-price {
  font-size: 1.18rem;
  font-weight: 900;
  color: #c0392b;
}

.package-stars {
  display: flex;
  gap: 2px;
  color: #f5a623;
  font-size: 14px;
}

.btn-select {
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-select:hover {
  background: #a93226;
}

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.modal-header {
  background: #c0392b;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-badge-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.modal-pkg-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 2px 0 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-box-detail {
  max-width: 860px;
  max-height: 90vh;
}

.modal-body-detail {
  display: flex;
  overflow: hidden;
  flex: 1;
}

.modal-left-panel {
  width: 250px;
  flex-shrink: 0;
  background: #fbfbfb;
  border-right: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  gap: 10px;
}

.modal-img-container {
  width: 140px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-price {
  font-size: 1.7rem;
  font-weight: 900;
  color: #c0392b;
}

.modal-stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
  font-size: 16px;
}

.modal-stock-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}

.btn-modal-send {
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 100%;
  max-width: 160px;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-modal-send:hover {
  background: #a93226;
}

.modal-right-panel {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}

.specs-grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spec-card {
  background: #f7f8f9;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-card-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #999;
}

.spec-card-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #222;
}

.about-build-desc {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
}

/* ── Order Review & GCash Modals ── */
.modal-box-inquiry {
  max-width: 540px;
  max-height: 90vh;
}

.modal-box-small {
  max-width: 440px;
}

.modal-body-dialog {
  padding: 20px;
  overflow-y: auto;
}

.dialog-desc {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.review-package-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fdfdfd;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  margin-top: 10px;
}

.review-package-img {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.review-package-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.review-package-meta {
  flex: 1;
  min-width: 0;
}

.review-package-title {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}

.review-package-price {
  font-size: 15px;
  font-weight: 800;
  color: #c0392b;
}

.inquiry-badge-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  background: #c0392b;
  color: #fff;
  border-radius: 4px;
  text-transform: uppercase;
}

.inquiry-specs-table-wrapper {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.inquiry-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.inquiry-specs-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f2f2f2;
}

.inquiry-spec-name {
  font-weight: 700;
  color: #666;
  width: 35%;
  text-transform: uppercase;
}

.inquiry-spec-val {
  color: #111;
  font-weight: 600;
}

.review-summary-box {
  background: #fbfbfb;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.review-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #555;
  margin-bottom: 4px;
}

.review-summary-line.total-line {
  border-top: 1px solid #e5e5e5;
  padding-top: 6px;
  margin-top: 6px;
  font-size: 15px;
  color: #c0392b;
  font-weight: 900;
}

.inquiry-price-banner {
  background: #fdf2f2;
  border: 1px solid #f8d7da;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inquiry-price-banner span {
  font-size: 11px;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.5px;
}

.inquiry-price-banner strong {
  font-size: 18px;
  font-weight: 900;
  color: #c0392b;
}

.dialog-form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.dialog-form-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #444;
}

.dialog-form-group input {
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.dialog-form-group input:focus {
  border-color: #c0392b;
}

/* GCash Styling */
.gcash-qr-box {
  background: #f8faff;
  border: 1.5px dashed #005ce6;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.gcash-qr-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.gcash-account-tag {
  font-size: 12px;
  color: #005ce6;
}

/* Feedback Styling */
.feedback-status-banner {
  background: #fdfaf3;
  border: 1px solid #faeacc;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.feedback-stars-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.star-item {
  font-size: 32px;
  color: #d8d8d8;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.star-item:hover,
.star-item.active {
  color: #f39c12;
  transform: scale(1.15);
}

.feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  resize: vertical;
  outline: none;
}

.feedback-textarea:focus {
  border-color: #c0392b;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.btn-dialog-cancel {
  padding: 8px 18px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-dialog-primary {
  padding: 8px 20px;
  border: none;
  background: #c0392b;
  color: #fff;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-dialog-primary:hover {
  background: #a93226;
}

/* ══════════════════════════════════════════════════════════════
   IN-SYSTEM SIGN IN REQUIRED MODAL POPUP
   ══════════════════════════════════════════════════════════════ */
.auth-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  backdrop-filter: blur(4px);
  padding: 16px;
}

.auth-prompt-box {
  background: #ffffff;
  border-radius: 14px;
  width: 420px;
  max-width: 92vw;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-prompt-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fee2e2;
  color: #c0392b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.auth-prompt-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.auth-prompt-msg {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.auth-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  width: 100%;
}

.btn-prompt-cancel {
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-prompt-cancel:hover {
  background: #e2e8f0;
}

.btn-prompt-login {
  background: #c0392b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-prompt-login:hover {
  background: #a93226;
  transform: translateY(-1px);
}

/* ─── Mobile Breakpoints ─── */
@media (max-width: 860px) {
  .packages-page {
    margin-top: 70px;
    padding: 24px 16px 60px;
  }

  .modal-body-detail {
    flex-direction: column;
    overflow-y: auto;
  }

  .modal-left-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ebebeb;
    padding: 18px;
  }

  .specs-grid-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .package-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-select {
    width: 100%;
    text-align: center;
  }
}