body.page_account {
  overflow-y: auto;
  height: auto;
}
body.page_account .home_layout {
  height: auto;
  min-height: 100svh;
}
body.page_account .home_content {
  flex: 1;
  height: auto;
  overflow: visible;
  padding-top: 24px;
  padding-bottom: 40px;
}
.account_container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.account_container h1 {
  text-align: center;
  color: #333;
  margin-top: 0;
  margin-bottom: 32px;
}

/* UPDATED: Add display:flex to make gap work */
.faq_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Counter badge for accordion header */
.accordion_counter_badge {
  font-size: 16px;
  font-weight: 500;
  color: #777;
}

/* Styles for the <p> tags */
.faq_answer p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0; /* Remove bottom margin */
  padding-top: 16px;
}

/* UPDATED: Changed selector from .appointments_list to #appointmentsList */
#appointmentsList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Center dynamic content --- */
.account_section_content {
  text-align: center;
  margin-top: 16px; /* Add gap above lists */
}

/* --- Logged Out Styles --- */
.account_section_logged_out {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  text-align: center; /* NEW: Center all content */
}

/* NEW: Title for logged out box */
.account_logged_out_title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  margin-bottom: 8px;
}
/* NEW: Intro text for logged out box */
.account_logged_out_intro {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 400px; /* Constrain line length */
  margin-left: auto;
  margin-right: auto;
}


/* --- Auth Button Container --- */
.account_auth_buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.account_auth_buttons .auth_button {
  width: 100%;
  max-width: 220px;
}

@media (min-width: 769px) {
  .account_section_logged_out {
    padding: 32px;
  }
  .account_auth_buttons {
    flex-direction: row;
    gap: 16px;
  }
}

/* --- Gallery Grid on Account Page --- */
.gallery_grid_account {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  /* margin-top: 16px; (Handled by .account_section_content) */
}

.gallery_card_link {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; /* Needed for new badge */
}
.gallery_card_link:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.gallery_card_image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #f0f0f0;
}
.gallery_card_content {
  padding: 16px;
  text-align: left;
}
.gallery_card_content h4 {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: 600;
  color: #333;
}
.gallery_card_content p {
  margin: 0;
  font-size: 14px;
  color: #666;
  padding-top: 0; /* Override default <p> padding */
}

/* NEW: "New" badge for gallery cards */
.gallery_card_new_badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #333;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
}