/* Hide mobile menu button and dropdown on desktop */
@media (min-width: 901px) {
  .menu-btn,
  .mobile-dropdown {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
  }
}
/* Mobile navigation and top button fixes */
@media (max-width: 900px) {
  /* Show hero logo on mobile */
  .hero-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    pointer-events: auto !important;
  }

  /* Mobile menu button styles */
  .menu-btn {
    display: block;
    position: absolute;
    top: 0.7rem;
    right: 1.2rem;
    z-index: 101;
    background: #23242a;
    color: #bfa76a;
    border: 2px solid #bfa76a;
    border-radius: 16px;
    padding: 0.7rem 1.2rem;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(191,167,106,0.18);
    transition: background 0.2s, color 0.2s;
  }
  .menu-btn:active,
  .menu-btn:focus {
    background: #bfa76a;
    color: #23242a;
    outline: none;
  }

  /* Dropdown menu styles */
  .mobile-dropdown {
    display: none;
    position: absolute;
    top: 3.2rem;
    right: 0.7rem;
    width: 85vw;
    background: #23242a;
    border: 2px solid #bfa76a;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(191,167,106,0.22);
    z-index: 102;
    padding: 1.2rem 0.7rem;
    flex-direction: column;
    gap: 0.7rem;
    animation: fadeIn 0.3s;
  }
  .mobile-dropdown.open {
    display: flex;
  }
  .mobile-dropdown a {
    padding: 1rem 0.7rem;
    font-size: 1.12rem;
    color: #bfa76a;
    background: none;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-dropdown a:hover {
    background: #bfa76a;
    color: #23242a;
  }


  header.mobile-header nav {
    position: relative;
  }
  header.mobile-header {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    background: #23242a;
    border-bottom: 2px solid #bfa76a;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-sizing: border-box;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  }
  header.mobile-header nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    background: none;
    border: none;
    position: static;
    padding: 0;
    margin: 0;
  }
  /* Remove vertical nav styles for mobile, only show dropdown */
  .branding-badge {
    display: none !important;
  }
  body {
    padding-top: 4.2rem;
  }
}
/* Hide Find Out More button in expanded mode */
.plan-card.expanded .find-out-btn {
  display: none;
}
/* Short description for collapsed card */
.plan-desc {
  color: #e6e6e6;
  font-size: 1.13rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

/* Close button for expanded view */
.close-btn {
  display: block;
  margin: 2rem auto 0 auto;
  background: #23242a;
  color: #bfa76a;
  font-weight: 700;
  font-size: 1.08rem;
  border: 2px solid #bfa76a;
  border-radius: 24px;
  padding: 0.7rem 2.2rem;
  box-shadow: 0 4px 16px rgba(191,167,106,0.18);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.close-btn:hover {
  background: #bfa76a;
  color: #23242a;
}
/* Find Out More button styles */
.find-out-btn {
  margin-top: 1.2rem;
  background: #bfa76a;
  color: #23242a;
  font-weight: 700;
  font-size: 1.12rem;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 2.2rem;
  box-shadow: 0 4px 16px rgba(191,167,106,0.18);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.find-out-btn:hover {
  background: #23242a;
  color: #bfa76a;
  border: 2px solid #bfa76a;
}
/* Expandable plan card styles */
.plan-card .plan-detail {
  display: none;
  margin-top: 1.2rem;
  color: #e6e6e6;
  font-size: 1.08rem;
}
.plan-card.expanded .plan-detail {
  display: block;
  animation: fadeIn 0.4s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tier cards row layout */

.plans-cards-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  width: 100%;
  margin: 0 auto;
  min-height: 600px;
}


.plan-card {
  margin: 1.2rem 0;
  background: rgba(35,36,42,0.98);
  border-radius: 32px;
  box-shadow: 0 12px 48px rgba(191,167,106,0.22);
  padding: 2.2rem 1.2rem 2.5rem 1.2rem;
  flex: 1 1 340px;
  min-width: 280px;
  max-width: 400px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2.5px solid #bfa76a;
  border-top: 8px solid #bfa76a;
  color: #fff;
  font-size: 1.22rem;
  justify-content: flex-start;
  box-sizing: border-box;
}
.plan-card h2 {
  font-size: 2.4rem;
  color: #bfa76a;
  margin-bottom: 2rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.plan-card ul {
  list-style: disc inside;
  margin: 0 0 2.5rem 0;
  padding: 0;
  color: #fff;
  font-size: 1.22rem;
}
.plan-card ul li strong {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  word-break: break-word;
  max-width: 95%;
  font-size: 1.18rem;
  line-height: 1.3;
}

/* Expand to center when clicked */
.plan-card.expanded {
  z-index: 10;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 98vw;
  max-width: 600px;
  box-shadow: 0 16px 64px rgba(191,167,106,0.32);
  font-size: 1.28rem;
  padding: 4rem 2.5rem 4rem 2.5rem;
  background: rgba(35,36,42,0.99);
  border-radius: 40px;
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
}

/* Expand arrow styles */
.expand-arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 1.3rem;
  height: 1.3rem;
  pointer-events: none;
  transition: transform 0.3s;
  fill: #bfa76a;
  opacity: 0.85;
}
.plan-card.expanded .expand-arrow {
  transform: rotate(90deg);
  opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
  .plans-cards-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    min-height: 0;
    max-width: 100vw;
    width: 100vw;
    padding: 0 0.5rem;
  }
  .plan-card {
    min-width: 96vw;
    max-width: 98vw;
    width: 98vw;
    padding: 1.5rem 0.7rem 2.2rem 0.7rem;
    font-size: 1rem;
    height: auto;
    box-sizing: border-box;
    margin: 1rem 0;
    border-radius: 22px;
  }
  .plan-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
  }
  .plan-card.expanded {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 98vw;
    max-width: 99vw;
    width: 99vw;
    padding: 1.7rem 0.7rem 2rem 0.7rem;
    font-size: 1.08rem;
    border-radius: 26px;
    z-index: 20;
  }
  .close-btn, .find-out-btn {
    width: 92vw;
    max-width: 92vw;
    font-size: 1rem;
    padding: 0.6rem 0;
    margin-bottom: 0.7rem;
  }
  .plan-desc {
    font-size: 0.98rem;
    margin-bottom: 1rem;
  }
  .plan-card ul {
    font-size: 0.98rem;
    margin-bottom: 1rem;
  }
  .expand-arrow {
    top: 0.7rem;
    right: 0.7rem;
    width: 1rem;
    height: 1rem;
  }
}