@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-color: #d291bc;
  --primary-color-dark: #f7ebf3;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --extra-light: #fafafa;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  color: var(--text-dark);
}

.section__subheader {
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
  color: var(--text-light);
  letter-spacing: 2px;
}

.btn {
  padding: 1rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5rem;
  cursor: pointer;
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Work Sans", sans-serif;
}

body.menu-active {
  overflow: hidden;
}

nav {
  max-width: var(--max-width);
  margin: auto;
  margin-left: -70px;
  padding: 2rem 1rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  max-width: 200px;
  height: auto;
  transform: translateY(8px) scale(2.05);
  transform-origin: left center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__logo:hover img {
  opacity: 1;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  transform: translateY(-15px);
  margin-left: 80px;
}

.link a {
  padding: 5px;
  color: var(--text-light);
}

.link a:hover {
  color: var(--primary-color);
}

.nav__menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 100;
  padding: 0.5rem;
}

.nav__menu-toggle:hover {
  color: var(--primary-color);
}

header {
  position: relative;
}

header::before {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, var(--primary-color), transparent);
  opacity: 0.2;
}

.header__container {
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.header__content {
  z-index: 1;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
  font-weight: 300;
  color: var(--text-dark);
}

.header__content h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-light);
}

.header__image {
  z-index: -1;
}

.header__image img {
  max-width: 475px;
  margin: auto;
}

.why__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.why__image img {
  max-width: 600px;
  margin: auto;
}

.why__content .section__header {
  margin-bottom: 1rem;
  text-align: left;
}

.why__content p {
  margin-bottom: 2rem;
  line-height: 1.5rem;
  color: var(--text-light);
}

.why__content ul {
  list-style: none;
}

.why__content li {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.hero {
  background-color: var(--extra-light);
}

.hero__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.hero__card span {
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  aspect-ratio: 1;
  background-color: var(--primary-color-dark);
  border-radius: 100%;
}

.hero__card span img {
  max-width: 40px;
}

.hero__card h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}

.hero__card p {
  line-height: 1.5rem;
  color: var(--text-light);
}

.classes__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.classes__image {
  position: relative;
  overflow: hidden;
}

.classes__content {
  position: absolute;
  left: 0;
  bottom: -100%;
  height: 100%;
  width: 100%;
  display: grid;
  place-content: center;
  background-image: linear-gradient(to top, var(--primary-color), transparent);
  transition: 0.5s;
}

.classes__image:hover .classes__content {
  bottom: 0;
}

.membership {
  background-color: var(--extra-light);
}

.membership__grid {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 4rem 2rem;
}

.membership__card {
  width: calc(33.333% - 1.5rem);
  max-width: 350px;
  height: 520px;
  padding: 1.5rem;
  text-align: center;
  background-color: var(--white);
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.membership__header {
  text-align: center;
  flex-shrink: 0;
}

.membership__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
  min-height: 0;
}

.membership__card .membership__btn {
  margin-top: auto;
  padding-top: 1rem;
  align-self: center;
  flex-shrink: 0;
}

.membership__card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.membership__card h2 {
  margin-bottom: 0.5rem;
  font-size: 3rem;
  font-weight: 500;
  color: var(--primary-color);
}

.membership__card h2 sup {
  font-size: 1.25rem;
}

.membership__card h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.membership__card p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

.membership__btn {
  width: calc(100% - 4rem);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 2px;
  transform: translateY(calc(50% + 2rem));
}

/* About Section */
.about__container {
  text-align: center;
  padding: 5rem 1rem;
}

.about__content {
  max-width: 900px;
  margin: 2rem auto 0;
  text-align: left;
}

.about__content p {
  margin-bottom: 1.8rem;
  line-height: 2;
  color: var(--text-dark);
  font-size: 1.1rem;
  letter-spacing: 0.3px;
}

.about__highlight {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-top: 2.5rem;
  font-style: italic;
}

.stories__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stories__card {
  padding: 1rem;
}

.stories__content {
  position: relative;
  isolation: isolate;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stories__content span {
  padding: 7px 10px;
  font-size: 2rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 100%;
}

.stories__content::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 2px;
  top: 0;
  left: 24px;
  background-color: var(--text-light);
  opacity: 0.1;
  z-index: -1;
}

.stories__content p {
  line-height: 1.5rem;
  color: var(--text-light);
}

.stories__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stories__author img {
  max-width: 100px;
  border-radius: 100%;
}

.stories__author__details h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.stories__author__details h6 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.banner {
  padding: 5rem 0;
  background-image: linear-gradient(to right, var(--primary-color), transparent),
    url("assets/46-banner.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.banner__container {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.banner__card h4 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 500;
  color: var(--white);
}

.banner__card p {
  color: var(--white);
}

.posts {
  background-color: var(--extra-light);
}

.posts__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.posts__card {
  background-color: var(--white);
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.05);
}

.posts__content {
  padding: 2rem;
}

.posts__date {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.posts__date span {
  font-size: 3rem;
  font-weight: 300;
  color: var(--primary-color);
}

.posts__date div {
  color: var(--text-light);
}

.posts__content h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}

.posts__content p {
  line-height: 1.5rem;
  color: var(--text-light);
}

/* FAQ Section */
.faq {
  background-color: var(--extra-light);
}

.faq__grid {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq__question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.faq__question:hover {
  background-color: var(--primary-color-dark);
}

.faq__question h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

.faq__question i {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s;
}

.faq__item.active .faq__question i {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.active .faq__answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq__answer p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.photos__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Contact Form Section */
.contact__container {
  padding: 5rem 1rem;
}

.contact__wrapper {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact__info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact__info>p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact__item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact__item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact__form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact__form-group {
  display: flex;
  flex-direction: column;
}

.contact__form-group--full {
  margin-bottom: 1.5rem;
}

.contact__form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--extra-light);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(210, 145, 188, 0.15);
}

.contact__form-group input::placeholder,
.contact__form-group textarea::placeholder {
  color: #a0aec0;
}

.contact__form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.footer {
  background-color: var(--primary-color);
  padding-top: 3rem;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__col {
  position: relative;
}

.footer__col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__logo img {
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer__logo:hover img {
  transform: scale(1.03);
}

.footer__logo-text {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s ease;
}

.footer__logo-text:hover {
  opacity: 0.85;
}

.footer__tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  margin-top: 0.5rem;
}

.footer__col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
}

.footer__col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--white);
}

.footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links ul li {
  margin-bottom: 0.75rem;
}

.footer__links ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__links ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer__contact p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contact p i {
  font-size: 1.1rem;
  color: var(--white);
}

.footer__whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background-color: #25D366;
  border-radius: 5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer__whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

.footer__whatsapp-btn i {
  font-size: 1.2rem;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  aspect-ratio: 1;
  font-size: 1.25rem;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer__socials a:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.25);
}

.footer__socials .whatsapp-link {
  background-color: #25D366;
}

.footer__socials .whatsapp-link:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
}

.footer__bar {
  padding-top: 1.5rem;
}

.footer__bar p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
}

/* ===== Auth: Sign In / Profile / Sign Out ===== */
.nav__auth {
  display: flex;
  align-items: center;
  transform: translateY(-15px) translateX(20px);
}

.auth__signin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth__signin-btn:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.auth__profile {
  position: relative;
}

.auth__profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  color: var(--white);
  background-color: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s;
}

.auth__profile-btn:hover {
  opacity: 0.85;
}

.auth__signout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  color: #e74c3c;
  background-color: #fde8e8;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 8px;
  transition: opacity 0.3s;
}

.auth__signout-icon:hover {
  opacity: 0.75;
}

/* ===== Profile Panel ===== */
.profile__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: flex-end;
}

.profile__overlay.active {
  display: flex;
}

.profile__panel {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--white);
  overflow-y: auto;
  padding: 2rem 1.5rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.profile__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
}

.profile__close:hover {
  color: var(--text-dark);
}

.profile__section {
  padding: 1.2rem 0;
  text-align: center;
}

.profile__avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
}

.profile__avatar-large {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 50%;
  overflow: hidden;
}

.profile__avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.profile__avatar-upload i {
  font-size: 1rem;
  color: var(--primary-color);
}

.profile__avatar-upload:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.profile__avatar-upload:hover i {
  color: var(--white);
}

.profile__section h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.profile__email-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

.profile__member-since {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: var(--primary-color);
  background-color: var(--primary-color-dark);
  border-radius: 5rem;
}

.profile__section h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile__section h3 i {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.profile__divider {
  border: none;
  border-top: 1px solid var(--extra-light);
}

/* Membership info in profile */
.profile__no-plan,
.profile__no-purchases {
  color: var(--text-light);
  font-size: 0.9rem;
}

.profile__plan-card {
  background: var(--primary-color-dark);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: left;
}

.profile__plan-card .plan-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.profile__plan-card .plan-name {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.profile__plan-card .plan-price {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.profile__plan-card .plan-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Purchase history items */
.profile__purchase-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--extra-light);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  text-align: left;
}

.profile__purchase-item .purchase-info .purchase-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.profile__purchase-item .purchase-info .purchase-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.profile__purchase-item .purchase-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Profile Account Settings */
.profile__settings {
  text-align: left;
}

.profile__setting-item {
  margin-bottom: 1.2rem;
}

.profile__setting-item label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.profile__setting-input-group {
  display: flex;
  gap: 0.5rem;
}

.profile__setting-input-group input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

.profile__setting-input-group input:focus {
  border-color: var(--primary-color);
}

.profile__save-btn {
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--primary-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.profile__save-btn:hover {
  opacity: 0.85;
}

.profile__save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile__settings-message {
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
  text-align: center;
}

.profile__settings-message.success {
  color: #27ae60;
  background-color: #d4edda;
}

.profile__settings-message.error {
  color: #e74c3c;
  background-color: #fde8e8;
}

.profile__upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), #b87aa4);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile__upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 145, 188, 0.4);
}

/* Edit Profile Button */
.profile__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.profile__edit-btn:hover {
  color: var(--white);
  background: var(--primary-color);
}

.profile__edit-btn i {
  font-size: 1.1rem;
}

/* Edit Profile Modal */
.edit-profile__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  justify-content: center;
  align-items: center;
}

.edit-profile__overlay.active {
  display: flex;
}

.edit-profile__modal {
  position: relative;
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: editProfileFadeIn 0.3s ease;
}

@keyframes editProfileFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.edit-profile__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

.edit-profile__close:hover {
  color: var(--text-dark);
}

.edit-profile__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.edit-profile__icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.edit-profile__header h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.edit-profile__header p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.edit-profile__avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.edit-profile__avatar {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.edit-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-profile__avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-color);
  background: var(--primary-color-dark);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.edit-profile__avatar-btn:hover {
  background: #edd5e4;
}

.edit-profile__form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.edit-profile__form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.edit-profile__form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}

.edit-profile__form-group input:focus {
  border-color: var(--primary-color);
}

.edit-profile__form-group input:disabled {
  background: var(--extra-light);
  color: var(--text-light);
  cursor: not-allowed;
}

.edit-profile__hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.edit-profile__message {
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.edit-profile__message.success {
  display: block;
  color: #27ae60;
  background-color: #d4edda;
}

.edit-profile__message.error {
  display: block;
  color: #e74c3c;
  background-color: #fde8e8;
}

.edit-profile__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.edit-profile__cancel-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--extra-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.edit-profile__cancel-btn:hover {
  background: #eee;
}

.edit-profile__save-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.edit-profile__save-btn:hover {
  opacity: 0.9;
}

.edit-profile__save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Sign In Modal */
.auth__modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.auth__modal-overlay.active {
  display: flex;
}

.auth__modal {
  position: relative;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.auth__modal h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.auth__modal p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

#authCreateView>p,
#authSigninView>p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.auth__modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

.auth__modal-close:hover {
  color: var(--text-dark);
}

.auth__form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.auth__form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.auth__form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

.auth__form-group input:focus {
  border-color: var(--primary-color);
}

.auth__error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth__submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Google Auth Button */
.auth__google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.auth__google-btn:hover {
  background: var(--extra-light);
  border-color: #bbb;
}

/* Auth Divider */
.auth__divider {
  display: flex;
  align-items: center;
  margin: 1.2rem 0;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.auth__divider span {
  padding: 0 0.8rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Auth View Switch */
.auth__switch {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.auth__switch a {
  color: var(--primary-color);
  font-weight: 500;
}

.auth__switch a:hover {
  text-decoration: underline;
}

/* Profile Sign Out Button */
.profile__signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e74c3c;
  background: #fde8e8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.profile__signout-btn:hover {
  opacity: 0.8;
}

/* ===== Stripe Payment Modal ===== */
.payment__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  justify-content: center;
  align-items: center;
}

.payment__overlay.active {
  display: flex;
}

.payment__modal {
  position: relative;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 440px;
  animation: paymentFadeIn 0.3s ease;
}

@keyframes paymentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.payment__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

.payment__close:hover {
  color: var(--text-dark);
}

.payment__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.payment__icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.payment__header h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.payment__header p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.payment__plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--primary-color-dark);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.payment__plan-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.payment__plan-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.payment__form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.payment__form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.payment__form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

.payment__form-group input:focus {
  border-color: var(--primary-color);
}

#cardElement {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s;
}

#cardElement.StripeElement--focus {
  border-color: var(--primary-color);
}

#cardElement.StripeElement--invalid {
  border-color: #e74c3c;
}

.payment__error {
  color: #e74c3c;
  font-size: 0.85rem;
  min-height: 1.2rem;
  margin-bottom: 0.5rem;
}

.payment__submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment__submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.payment__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (width < 900px) {
  .nav__links {
    gap: 1rem;
  }

  header::before {
    left: 0;
  }

  .header__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .header__image {
    grid-area: 1/1/2/2;
  }

  .header__content {
    padding: 5rem 0;
    text-align: center;
  }

  .why__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .why__content :is(.section__header, p) {
    text-align: center;
  }

  .hero__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .membership__card {
    width: calc(50% - 1rem);
  }

  .stories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .banner__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .faq__grid {
    margin-top: 2rem;
  }

  .faq__question h4 {
    font-size: 0.95rem;
  }

  .photos__grid {
    gap: 1rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer__brand {
    grid-column: span 2;
    text-align: center;
  }

  .footer__tagline {
    text-align: center;
  }

  .footer__col h4::after {
    left: 0;
  }

  .footer__socials {
    justify-content: flex-start;
  }

  .footer__social .footer__socials {
    justify-content: flex-start;
  }
}

@media (width < 750px) {
  .nav__links {
    gap: 0.5rem;
  }

  .classes__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile auth buttons hidden on desktop */
.mobile-auth {
  display: none !important;
}

@media (width < 600px) {
  nav {
    margin-left: 0;
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .nav__menu-toggle {
    display: block;
    order: 1;
    padding: 0.25rem;
  }

  .nav__logo {
    order: 2;
  }

  .nav__logo img {
    max-width: 150px;
    transform: translateY(0) scale(1.1);
  }

  .nav__auth {
    order: 3;
    margin-left: auto;
    transform: translateY(0) translateX(0);
  }

  .auth__signin-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .auth__profile-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    z-index: 99;
    margin-left: 0;
    transform: translateY(0);
  }

  .nav__links.active {
    left: 0;
  }

  .link a {
    font-size: 1.1rem;
    font-weight: 500;
  }

  .mobile-auth {
    display: list-item !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--extra-light);
  }

  .mobile-signin-btn,
  .mobile-profile-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    background-color: var(--primary-color);
    border: none;
    border-radius: 5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .mobile-signin-btn:hover,
  .mobile-profile-btn:hover {
    opacity: 0.85;
  }

  .hero__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .membership__card {
    width: 100%;
    max-width: 100%;
  }

  .stories__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .posts__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .faq__question {
    padding: 1rem 1.25rem;
  }

  .faq__question h4 {
    font-size: 0.9rem;
  }

  .faq__item.active .faq__answer {
    padding: 0 1.25rem 1rem;
  }

  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__tagline {
    text-align: center;
  }

  .footer__contact p {
    justify-content: center;
  }

  .footer__col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__socials {
    justify-content: center;
  }
}