:root {
  --text-light: #ffffff;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x:hidden;
   overflow-y:hidden;
}

/* Scrollbar Styling */
body::-webkit-scrollbar {
  width: 5px;
  /* Width of the scrollbar */
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Background color of the track */
  border-radius: 10px;
  /* Rounded corners for the track */
}

body::-webkit-scrollbar-thumb {
  background: #1f3a52;
  /* Color of the scrollbar */
  border-radius: 10px;
  /* Rounded corners for the thumb */
}
body::before {
    content: '';
    position: fixed;
    /* Use fixed positioning to make the background cover the entire page */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    background-size: 300% 300%;
    opacity: 1;
    /* Make the background image faint */
    z-index: -1;
    /* Position the background behind the content */
    pointer-events: none;
    /* Prevent the background from interfering with interactions */
}
header {
  color: var(--text-light);
  padding: 10px 21px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
  transition: transform 0.3s ease-in-out;
  margin-top: -20px;
  /* Add this line */


}

.social-media-icons {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.social-media-icons a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
}

.social-media-icons a:hover h2 {
  animation: shake 0.5s forwards;
}

.logo-container {

  display: flex;
  align-items: center;
  margin-right: 50px;
  margin-left: 50px;
  /* Add some margin to separate the logo from the nav */
  flex-shrink: 0;
  /* Prevent it from shrinking on small screens */
  margin-top:20px;
}

.logo-video {
  width: 210px !important;
  height: 10%;
  border-radius: 10%;
  object-fit: contain;
}

nav {
  flex: 1;
  /* Take up the remaining space */
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  /* Prevent wrapping */
  transition: transform 0.3s ease-in-out;

}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;

  /* Adjust as needed */
  transition: opacity 0.5s ease-in-out;
}

.nav-links.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.nav-links li {
  margin: 0.5rem;
}

.nav-links li a {
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 14.2px;
  font-weight: 200;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  transform: scale(1.1);
  color: #acc8df;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 15px;
  border-color: var(--link-underline);
}


section {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: flex-start;
  /* Keep layout natural, not centered */
  align-items: flex-start;
  padding: 30px;
  gap: 40px;
  box-sizing: border-box;
  position: relative;
  margin-top: -5px;
}


.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 30px !important;
  overflow: hidden;
  width: 100% !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 1s ease-in-out;
  opacity: 0;
  /* Start hidden */
  animation: slideIn 1s ease-in-out forwards;
  top:50px;
}




.card-group {
  display: flex;
  gap: 30px;
  margin-left: 80px !important;
  /* shift whole group right */
}



/* Sequential Animation Delay */
.card:nth-child(1) {
  animation-delay: 0s;
}

.card:nth-child(2) {
  animation-delay: 0.3s;
}

.card:nth-child(3) {
  animation-delay: 0.6s;
}

.card:nth-child(4) {
  animation-delay: 0.9s;
}

/* Animation Keyframes */
@keyframes slideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.top3,
.top4 {
  background: linear-gradient(135deg, #1a1f2b 0%, #223a4d 50%, #2e5a72 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55),
    inset 0 0 15px rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.08);

  color: #fff;
  text-align: center;
  padding: 20px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px 12px 0 0;
}


.card-top h2 {
  font-size: 1.125rem;
  margin-bottom: 5px;
}

.card-top p {
  font-size: 1.5rem;
  font-weight: bold;
}

.card-content {
  padding: 20px;
  text-align: center;
}

.card-content p {
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: #333;
  font-weight: bold;
}

.btn1,
.btn2,
.btn3,
.btn4 {
  padding: 0.75rem 2rem;
  border-radius: 25px;
  background: linear-gradient(135deg, #0a2a33, #007f9f, #00b8d9);
  box-shadow: 0 4px 15px rgba(0, 180, 220, 0.3);
  color: #fff;
  font-weight: bold;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.btn1:hover,
.btn2:hover,
.btn3:hover,
.btn4:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.45);
}


button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transition: opacity 0.3s ease;
}


/* === Payment Modal Styling === */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  /* Soft overlay */
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.4s ease-in-out;
}

/* Modal Content Box */
.cart-modal .modal-content {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  /* Deep MoodPàdi gradient */
  color: #f5faff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: scale(1);
  transition: transform 0.3s ease;
  font-family: "Poppins", sans-serif;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Heading */
.cart-modal .modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  background: linear-gradient(90deg, #16c79a, #5edfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

/* Form Labels & Selects */
.cart-modal label {
  display: block;
  margin: 1rem 0 0.3rem;
  font-weight: 600;
  color: #d1e8e2;
}

.cart-modal select {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  color: #333;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.cart-modal select:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Subtotal Text */
#item-details {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: #b8d8d8;
}

/* Checkout Button */
.cart-modal button[type="submit"] {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #16c79a, #5edfff);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
  width: 100%;
}

.cart-modal button[type="submit"]:hover {
  background: linear-gradient(135deg, #13b589, #4cc9f0);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(94, 223, 255, 0.25);
}

/* Close Button */
.cart-modal .close-modal {
  margin-top: 1rem;
  background: transparent;
  color: #a7c7c7;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-modal .close-modal:hover {
  color: #fff;
  border-color: #16c79a;
  background: rgba(22, 199, 154, 0.15);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Optional fade-out for smooth close */
.cart-modal.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}

.result-header{
  margin-top:140px;
}
.result-header p {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.5rem;
  font-family: sans-serif;
  line-height: 1.4em;
}

.result-header h2 {
  font-size: 2.375rem;
  font-weight: 300;
  line-height: 1.1em;
  color: white;
}

.serif1 {
  font-weight: 200;
  font-style: italic;
  font-family: serif;
  margin-left: 0.2rem;
  /* reduce or remove margin */
}

.bold-message {
  font-weight: bold !important;
  font-size: 1rem;
  margin-top: 6px;
  font-family: 'Nunito', sans-serif;
}

/*#region ***********************************************************Custom Modal styles */
.input-error {
  border: 1px solid var(--input-error-border);
}

.error-message {
  color: var(--error-message-color);
  font-size: 0.85em;
  margin-top: 5px;
}

/* Custom Modal styles */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: var(--modal-overlay-bg);
  z-index: 9999;
  pointer-events: auto;
}

.custom-modal.show {
  display: flex;
  /* Show and center modal */
}

#errorModal .custom-modal-content {
  background: linear-gradient(135deg, #ff6a6a, #d93636);
  color: #fff;
  box-shadow: 0 8px 24px rgba(217, 54, 54, 0.4);
}

#successModal .custom-modal-content {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.35);
}

/* Common modal content */
.custom-modal-content {
  border-radius: 10px;
  max-width: 260px;
  /* reduced from 320px */
  width: 85%;
  /* takes less screen space */
  padding: 14px 16px;
  /* reduced padding */
  animation: slideUp 0.35s ease-out;
  pointer-events: auto;
  z-index: 10000;
}

/* Header Styling */
.custom-modal-header {
  background: transparent !important;
  /* Let gradient show */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-modal-title {
  font-size: 0.9rem;
  /* smaller text */
  font-weight: 600;
  letter-spacing: 0.4px;
  margin: 0;
}

/* Body */
.custom-modal-body {
  padding: 8px;
  font-size: 0.9rem;
  /* reduced font */
  text-align: center;
  color: white;
}

/* Footer */
/* Footer */
.custom-modal-footer {
  padding: 6px;
  text-align: center;
}

.custom-modal-footer button {
  border-radius: 6px;
  font-size: 0.75rem;
  /* smaller button text */
  padding: 4px 10px;
  /* smaller button */
  box-shadow: none;
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hidden {
  display: none;
}

#countdown-timer {
  font-weight: bold;
  color: green;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/*#endregion CUSTOM MODAL STYLE*/

/* === Confirmation Banner === */
.confirm-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  padding: 1rem 1.5rem;
  z-index: 10000;
  animation: slideIn 0.4s ease forwards;
  font-family: "Poppins", sans-serif;
}

/* ✅ Accent glowing border to make it pop */
.confirm-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #00c9a7, #005f73);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.confirm-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.confirm-banner-content p {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  text-align: center;
}

.confirm-banner-actions {
  display: flex;
  gap: 1rem;
}

.confirm-banner-actions button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.confirm-banner-actions button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.confirm-banner-actions .confirm-yes {
  background: rgba(255, 255, 255, 0.25);
}

.confirm-banner-actions .confirm-yes:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.confirm-banner.slide-out {
  animation: slideOut 0.4s ease forwards;
}

@keyframes slideOut {
  to {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
}


/*#region-------------------------------------------------------------- MEDIA QUERIES-------------------------------------------------*/


/* =========================================================
   🔹 Range 1: (max-width: 414px) and (min-height: 412px)
   - Typical iPhone SE / Small Androids
========================================================= */
@media (max-width: 414px) and (min-height: 412px) {
  section {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 15px;
    height: auto;
    overflow-y: auto;
  }

  .card-group {
    flex-direction: column;
    align-items: center;
    margin: 0 auto !important;
    gap: 20px;
  }

  .card {
    width: 95% !important;
    margin: 10px auto;
  }

  header {
    flex-wrap: wrap;
    padding: 8px 12px;
  }

  .logo-video {
    width: 150px !important;
  }

  .result-header {
    margin-top: 110px;
    text-align: center;
  }
}



/* ================================
📱 SMALL–MEDIUM DEVICES (Older Phones)
Max width: 599px | Max height: 667px
=================================*/
@media (max-width: 599px) and (max-height: 667px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden !important; /* Prevent body scroll */
  }

  body {
    display: flex;
    flex-direction: column;
    background: var(--background-color);
  }

  header {
    position: relative !important; /* Stay in flow */
    width: 100% !important;
    flex-shrink: 0; /* Prevent shrinking */
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    background-size: cover;
    z-index: 10;
  }

  .logo-video {
    width: 160px !important;
    height: auto !important;
    margin-top: 10px !important;
  }

  section {
    flex: 1; /* Take remaining height below header */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 15px !important;
    height: calc(100vh - 120px) !important; /* Deduct header height */
    overflow-y: auto !important; /* Section scrolls, not body */
    gap: 20px !important;
  }

  .card-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 10px !important;
    margin-top:-55px !important;
  }

  .card {
    width: 92% !important;
    max-width: 380px;
    margin: 0 auto !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .result-header {
    margin-top: 5px !important;
    text-align: center !important;
  }

  .result-header h2 {
    font-size: 1.7rem !important;
  }
}

/* =========================================================
   🔹 Range 1: (max-width: 599px) and (min-height: 668px) and (max-height: 812px)
   - Typical iPhone 11 / Pixel 5 / Small Tablets (portrait)
========================================================= */
@media (max-width: 599px) and (min-height: 668px) and (max-height: 812px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden !important;
  }

  body {
    display: flex;
    flex-direction: column;
    background: var(--background-color);
  }

  header {
    position: relative !important;
    width: 100%;
    padding: 12px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    z-index: 10;
  }

  .logo-video {
    width: 180px !important;
    height: auto !important;
    margin-top: 10px !important;
  }

  section {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 25px 18px !important;
    height: calc(100vh - 130px) !important;
    overflow-y: auto !important;
    gap: 25px !important;
  }

  /* 🔥 Ensure the card group stacks vertically */
  .card-group {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important; /* Prevent side-by-side layout */
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 15px !important;
    margin-top: -45px !important;
  }

  /* 🔥 Ensure each card is block-level, full width */
  .card {
    display: block !important;
    width: 92% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    flex: none !important; /* Prevent flex-basis side-by-side alignment */
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .result-header {
    margin-top: 10px !important;
    text-align: center !important;
  }

  .result-header h2 {
    font-size: 1.8rem !important;
  }
}


@media (max-width: 599px) and (min-height: 933px) and (max-height: 1000px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important; /* ✅ prevent nested flex weirdness */
  }

  body {
    background: var(--background-color);
  }

  header {
    position: relative !important;
    width: 100% !important;
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%) !important;
    z-index: 1200 !important;
  }

  .logo-video {
    width: 180px !important;
    height: auto !important;
    margin-top: 8px !important;
  }

  section {
    width: 100% !important;
    max-width: 600px !important; /* ✅ cap width so centering works */
    margin: 0 auto !important;
    padding: 25px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    overflow-y: auto !important;
  }

  .result-header {
    width: 100%;
    text-align: center !important;
    margin: 10px 0 0 0 !important;
  }

  .result-header h2 {
    font-size: 1.8rem !important;
    margin: 0 !important;
  }

  .card-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 420px !important; /* ✅ center boundary */
    margin: 0 auto !important;
    gap: 20px !important;
    margin-left:50% !important;
    margin-top:-40px !important;
  }

  .card {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 16px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
}


/* =========================================================
   🔹 Range 3: (max-width: 430px) and (max-height: 932px)
   - iPhone 12 / 13 / 14 (typical portrait size)
========================================================= */
@media (max-width: 430px) and (max-height: 932px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden !important;
  }

  body {
    display: flex;
    flex-direction: column;
    background: var(--background-color);
  }

  header {
    position: relative !important;
    width: 100%;
    padding: 12px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    z-index: 10;
  }

  .logo-video {
    width: 175px !important;
    height: auto !important;
    margin-top: 10px !important;
  }

  section {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 25px 15px !important;
    height: calc(100vh - 130px) !important;
    overflow-y: auto !important;
    gap: 25px !important;
  }

  .card-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    margin: 0 auto;
    gap: 15px !important;
    margin-top: -50px !important;
  }

  .card {
    width: 92% !important;
    max-width: 390px !important;
  }

  .result-header h2 {
    font-size: 1.8rem !important;
  }
}


@media (max-width: 767px) and (min-width: 568px) and (max-height: 600px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto !important; /* allow scrolling */
    overflow-x: hidden !important;
  }

  body {
    display: flex;
    flex-direction: column;
    background: var(--background-color);
  }

  header {
    position: relative !important;
    width: 100%;
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    z-index: 10;
  }

  .logo-video {
    width: 140px !important;
    height: auto !important;
  }

  section {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 12px !important;
    height: auto !important; /* let content define height */
    min-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
    gap: 15px !important;
  }

  /* ✅ FORCE vertical stacking — no side-by-side */
  .card-group {
    display: flex !important;
    flex-direction: column !important; /* vertical */
    flex-wrap: nowrap !important;      /* prevent horizontal wrapping */
    align-items: center !important;    /* center horizontally */
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    gap: 12px !important;
    margin-top: -25px !important;
    margin-left: 38% !important;;
  }

  /* ✅ ensure cards are full-width, stacked */
  .card {
    display: block !important;
    flex: none !important;             /* cancel flex-basis sharing */
    width: 90% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    float: none !important;
    clear: both !important;
  }

  /* optional: ensure even height consistency */
  .card-group > * {
    flex: none !important;
    width: 100% !important;
  }

  .result-header {
    width: 100%;
    text-align: center !important;
    margin-top: 10px !important;
  }

  .result-header h2 {
    font-size: 1.6rem !important;
    margin: 0 !important;
  }
}
