﻿/*
  Merged CSS bundle
  - merged: style.css + (original) app.css + enhanced.css
  - note: enhanced.css is scoped under body.enhanced-page to avoid overriding the main app UI
*/

/* ===== BEGIN: style.css ===== */* {
  box-sizing: border-box;
}

/* Font already loaded from Google Fonts in the HTML */

html,
body {
  margin: 0;
  font-family: product sans;
  color: #2b2b2b;
  background: #fff;
  z-index: -5;
  position: relative;
}

.hero-copy {
  padding: 100px 0px 50px 0px;
  width: 100%;
}

/* Background gradient image (full page) */
.bg-gradient {
  width: 100%;
  height: 700px;
  position: absolute;
  inset: 0;
  background: url("./img/gradient-hero.png") center no-repeat;
  background-size: 100% 100%;
  z-index: 0;
  pointer-events: none;
}

/* App: show hero gradient ONLY on Home tab */
body:not(.is-home-tab) .bg-gradient {
  display: none;
}

.bg-gradient-second {
  width: 100%;
  height: 700px;
  position: absolute;
  inset: 0;
  background: url("./img/second-gradient.png") center no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: -1;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

/* Header */
.site-header {
  padding: 25px 0 25px 0;
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(20px);
  background: #ffffff45;
  mask: linear-gradient(
    0deg,
    rgb(255 255 255 / 0%) 0%,
    rgb(255 255 255) 50%,
    rgb(255 255 255) 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  gap: 35px;
}

.nav-left a {
  font-size: 14px;
  line-height: 20px;
  color: #5b5e63;
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right .contact {
  font-size: 14px;
  text-decoration: none;
  color: #0026d4;
}

.nav-right .btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: #1a1c1e;
  text-decoration: none;
  font-size: 14px;
}

/* Mobile-only CTA (hidden on desktop) */
.mobile-cta {
  display: none;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ffffff;
  color: #3f51b5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #5b5e63;
  margin: 5px 0;
}

/* Mobile menu (hidden by default) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.mobile-menu__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 82%;
  max-width: 360px;
  background: #f7f7f8;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0%);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  padding: 6px 8px;
  color: #5b5e63;
}

.mobile-menu__links {
  list-style: none;
  padding: 16px 0 10px 0;
  margin: 0;
}

.mobile-menu__links a {
  display: block;
  padding: 12px 6px;
  text-decoration: none;
  color: #2b2b2b;
  font-size: 16px;
}

.mobile-menu__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero */
.hero {
  padding: 0px 0 50px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  color: #6b6f75;
}

.hero-copy .eyebrow .highlight {
  color: #0026d4;
}

.title {
  margin: 18px 0 12px;
  font-family: Anybody;
  font-weight: 600;
  font-size: 65px;
  line-height: 1.06;
  color: #FF6B00;
  letter-spacing: -3px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 28px;
}

.btn-primary {
  background: #FF8A50;
  color: white;
  padding: 8px 8px 8px 20px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Anybody';
}

.btn-primary::after {
  /* content: 'ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢'; */
  font-size: 22px;
}

.btn-secondary {
  background: white;
  color: #a5a5a5;
  padding: 12px 24px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  border: 2px solid #ddd;
  align-content: center;
  align-items: center;
  font-family: 'Anybody';
}

.gradient-text {
  background: linear-gradient(0deg, #FF6B00, #FF9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* for Firefox */
  color: transparent;
}

.subtitle {
  margin: 25px 0 25px 0;
  font-size: 18px;
  line-height: 150%;
  color: #a5a5a5;
  max-width: 520px;
}

.collab-title {
  margin: 28px 0 16px;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 25px;
  color: #8b8e93;
}

.collab-logos {
  height: 60px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  position: relative;
  overflow: hidden;
  width: 100%;
}

.logos-marquee {
  position: relative;
  width: 100%;
  height: 100%;
  mask: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-box-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 100px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  will-change: transform;
  animation: logos-scroll 20s linear infinite;
}

.logos-track img {
  height: 48px;
  width: auto;
  filter: grayscale(100%);
  transition: 0.4s;
}

.logos-track img:hover {
  scale: 1.1;
}

.logos-track img:nth-child(1) {
  margin-left: 100px;
}

.collab-logos::before,
.collab-logos::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
}

.collab-logos::before {
  left: 0;
}

.collab-logos::after {
  right: 0;
}

@keyframes logos-scroll {
  0% {
    transform: translateY(-50%) translateX(0);
  }

  100% {
    transform: translateY(-50%) translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }
}

.hero-media {
  display: flex;
}

.hero-photo {
  width: 500px;
  height: auto;
}

/* Responsive */
@media (max-width: 980px) {
  .container {
    padding: 0 30px;
  }

  .nav-left {
    display: none;
  }

  .hamburger {
    display: inline-block;
  }

  .nav-right .contact {
    display: none;
  }

  .nav-right .btn {
    display: none;
  }

  .mobile-cta {
    display: inline-block;
  }

  .header-inner {
    gap: 12px;
  }

  .hero-inner {
    display: flex;
    gap: 16px;
    align-items: center !important;
    text-align: center !important;
    flex-direction: column;
    justify-content: center;
  }

  .hero-media {
    order: 1;
    justify-content: center;
    margin-bottom: 30px;
  }

  .title {
    font-size: 38px;
    letter-spacing: -1px;
  }
  
  /* Change title line breaks for mobile - hide first br */
  .title br:first-of-type {
    display: none;
  }

  .subtitle {
    max-width: unset;
    margin: 18px 0 24px 0;
  }

  .hero-photo {
    width: 300px;
    height: 160px;
    transform: none;
    object-fit: cover;
  }

  .collab-title {
    text-align: center;
  }

  .collab-logos {
    height: 52px;
  }
  
  /* Hide arrow icon on primary button in mobile */
  .arrow-box {
    display: none;
  }
  
  /* Adjust primary button padding in mobile */
  .btn-primary {
    padding: 15px 20px !important;
  }
  
  /* Change "Explore Stories" to "Explore" in mobile */
  .btn-secondary {
    font-size: 0;
  }
  
  .btn-secondary::after {
    content: 'Explore';
    font-size: 14px;
    font-weight: 500;
  }
}

.first-screen {
  height: calc(100vh - 140px);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Latest Notes & News */
.latest {
  padding: 40px 0 70px;
}

.latest-title-wrap {
  position: relative;
  padding: 50px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.latest-title {
  font-family: Anybody;
  font-weight: 400;
  font-size: 35px;
  line-height: 1.1;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.latest-title-wrap .title-shapes {
  position: absolute;
  left: 50px;
  width: 150px;
  opacity: 0.9;
  transform: translate(0, 0);
  z-index: 0;
  pointer-events: none;
}

.latest-kicker {
  margin: 8px 0 24px;
  color: #5e6166;
  max-width: 500px;
}

/* Free mode list (B&W) */
.latest-free {
  overflow: hidden;
  margin-top: 6px;
  mask: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.latest-free .swiper-slide {
  width: 280px;
}

.bw-card {
  border-radius: 16px;
}

.bw-card .media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.bw-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1);
  transition: filter 200ms ease, transform 250ms ease;
}

.bw-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.bw-card__title {
  font-size: 16px;
  line-height: 20px;
  margin: 12px 0 6px;
  color: #1d2024;
}

.bw-card__date {
  font-size: 12px;
  color: #6b6f74;
}

/* Responsive featured slider */
.latest-responsive {
  margin-top: 26px;
}

.latest-responsive .swiper-slide {
  height: auto;
}

.feature-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.feature-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgb(0 0 0 / 71%) 100%
  );
  color: #fff;
}

.feature-card__date {
  font-size: 13px;
  opacity: 0.9;
}

.feature-card__title {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 28px;
}

.latest-responsive .swiper-pagination {
  position: static;
  margin-top: 10px;
}

.latest-responsive .swiper-pagination-bullet {
  background: #9aa0a6;
  opacity: 1;
}

.latest-responsive .swiper-pagination-bullet-active {
  background: #1f45ff;
}

/* Books & Articles */
.books {
  padding: 20px 0 60px;
}

.books .latest-title-wrap {
  padding: 40px 0 24px;
}

/* Free mode list (Books) */
.books-free {
  overflow: hidden;
  margin-top: 6px;
  mask: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 92%,
    rgba(0, 0, 0, 0) 100%
  );
}

.books-free .swiper-slide {
  width: 240px; /* slightly less width than news cards */
}

.book-card {
  border-radius: 16px;
}

.book-card .media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.book-card img {
  display: block;
  width: 100%;
  height: 190px; /* tiny bit taller than news cards */
  object-fit: cover;
  transform: scale(1);
  transition: transform 250ms ease;
}

.book-card:hover img {
  transform: scale(1.04);
}

.book-card__title {
  font-size: 15px;
  line-height: 20px;
  margin: 10px 0 6px;
  color: #1d2024;
}

.book-card__meta {
  font-size: 12px;
  color: #6b6f74;
}

@media (max-width: 980px) {
  .books .latest-title-wrap {
    padding: 0;
  }
  .book-card img {
    height: 160px;
  }
  .books-free .swiper-slide {
    width: 210px;
  }
}

/* Courses */
.courses {
  padding: 10px 0 70px;
}

.courses .latest-title-wrap {
  padding: 40px 0 24px;
}

.courses-free {
  overflow: hidden;
  margin-top: 6px;
  mask: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 92%,
    rgba(0, 0, 0, 0) 100%
  );
}

.courses-free .swiper-slide {
  width: 260px; /* a bit wider for course info */
}

.course-card {
  border-radius: 16px;
}

.course-card .media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.course-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 250ms ease;
}

.course-card:hover img {
  transform: scale(1.04);
}

.course-card__title {
  font-size: 16px;
  line-height: 20px;
  margin: 10px 0 6px;
  color: #1d2024;
}

.course-card__meta {
  font-size: 12px;
  color: #6b6f74;
}



.arrow-box {
  background: #fff;
  padding: 7px;
  width: 35px;
  border-radius: 10px;
}



@media (max-width: 980px) {
  .courses .latest-title-wrap {
    padding: 0;
  }
  .courses-free .swiper-slide {
    width: 230px;
  }
}

@media (max-width: 980px) {
  .latest-title {
    font-size: 32px;
    text-align: left;
  }

  .latest-title-wrap .title-shapes {
    display: none;
  }

  .bw-card img {
    height: 120px;
  }

  .latest-free .swiper-slide {
    width: 250px;
  }

  .latest-title-wrap {
    position: relative;
    padding: 0px 0;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: unset;
  }
}

/* About & Expertise */
.about-expertise {
  padding: 30px 0 70px;
  position: relative;
}

.about-expertise__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 20px;
}

.section-title {
  font-family: Anybody;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 14px;
}

.about-expertise__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 30px 0;
}

.about__copy p,
.expertise__copy p {
  color: #5e6166;
  margin: 0 0 12px;
  line-height: 130%;
}

.about-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.expertise {
  grid-template-columns: 0.95fr 1.05fr;
}

.expertise__item + .expertise__item {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .first-screen {
    height: calc(100vh - 120px);
  }
  .about-expertise {
    padding: 10px 0 40px;
  }

  .about-expertise__two-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .about-expertise__grid,
  .expertise {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
  }
  .col--left {
    flex-direction: column-reverse;
  }
}

/* Footer (minimal, no bg, no borders) */
.site-footer {
  padding: 40px 0 60px;
  color: #2b2b2b;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-title {
  margin: 0 0 6px;
  font-family: Anybody;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: #FF6B00;
}

.footer-tagline {
  margin: 0;
  color: #61656a;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-nav a {
  color: #5b5e63;
  text-decoration: none;
  font-size: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b5e63;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.footer-social a:hover {
  color: #1f45ff;
  transform: translateY(-1px);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  color: #6b6f74;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: #6b6f74;
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-footer {
    padding: 24px 0 40px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-nav {
    gap: 10px 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Features Section */
.features-section {
  padding: 80px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: #FF8A50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: translateY(-5px) scale(1.1);
  color: #FF6B00;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-family: Anybody;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #2b2b2b;
}

.feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #5e6166;
  margin: 0;
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 138, 80, 0.05) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 0.5s ease forwards;
}

.stat-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-number {
  font-family: Anybody;
  font-size: 48px;
  font-weight: 700;
  color: #FF6B00;
  margin: 0 0 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #5e6166;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
}

.section-heading {
  font-family: Anybody;
  font-size: 42px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 60px;
  color: #2b2b2b;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.step-item {
  position: relative;
  padding: 40px 30px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInRight 0.6s ease forwards;
}

.step-item:nth-child(1) {
  animation-delay: 0.1s;
}

.step-item:nth-child(2) {
  animation-delay: 0.2s;
}

.step-item:nth-child(3) {
  animation-delay: 0.3s;
}

.step-number {
  font-family: Anybody;
  font-size: 72px;
  font-weight: 700;
  color: rgba(255, 107, 0, 0.1);
  line-height: 1;
  margin: 0 0 20px;
  transition: color 0.3s ease;
}

.step-item:hover .step-number {
  color: rgba(255, 107, 0, 0.2);
}

.step-title {
  font-family: Anybody;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #2b2b2b;
}

.step-description {
  font-size: 16px;
  line-height: 1.6;
  color: #5e6166;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  position: relative;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.cta-title {
  font-family: Anybody;
  font-size: 48px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #2b2b2b;
  line-height: 1.2;
}

.cta-description {
  font-size: 20px;
  color: #5e6166;
  margin: 0 0 40px;
  line-height: 1.5;
}

.cta-button {
  display: inline-flex;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .features-section {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .how-it-works {
    padding: 60px 0;
  }

  .section-heading {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-item {
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-title {
    font-size: 36px;
  }

  .cta-description {
    font-size: 18px;
  }

  .stat-number {
    font-size: 36px;
  }
}

/* Memorial Carousel Styles */
:root {
  --theme-primary: #FF6B35;
  --theme-primary-light: #FF8555;
  --theme-secondary: #FFA500;
  --theme-surface: #FFFFFF;
  --theme-surface-alt: #FFF8F5;
  --theme-text-primary: #1A1A1A;
  --theme-text-secondary: #666666;
  --theme-text-tertiary: #999999;
  --theme-border: #F0F0F0;
  --theme-radius-sm: 12px;
  --theme-radius-md: 20px;
  --theme-radius-lg: 28px;
  --theme-radius-xl: 36px;
  --theme-radius-circle: 50%;
  --theme-spacing-xs: 8px;
  --theme-spacing-sm: 12px;
  --theme-spacing-md: 16px;
  --theme-spacing-lg: 24px;
  --theme-spacing-xl: 32px;
  --theme-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override container padding for main page container */
.container {
  padding: 0 30px;
}

/* Carousel Section */
.carousel-section {
  margin-bottom: var(--theme-spacing-xl);
  padding: var(--theme-spacing-lg) 0;
}

.carousel-section .section-header {
  max-width: 1100px;
  margin: 0 auto var(--theme-spacing-lg);
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-section .swiper-container-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.swiper-container-wrapper {
  width: 100%;
  overflow: hidden;
}

.carousel-section .section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin: 0;
}

@media (min-width: 768px) {
  .carousel-section .section-title {
    font-size: 24px;
  }
}

.see-all-link {
  font-size: 16px;
  color: var(--theme-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--theme-transition);
}

.see-all-link:hover {
  color: var(--theme-primary-light);
}

.memorial-swiper {
  padding: 10px 30px;
  max-width: 1100px;
}

/* Memorial Cards */
.memorial-card {
  background-color: var(--theme-surface);
  border-radius: var(--theme-radius-md);
  overflow: hidden;
  border: 2px solid var(--theme-border);
  transition: var(--theme-transition);
  cursor: pointer;
  padding: var(--theme-spacing-xs);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.memorial-card:hover {
  border-color: var(--theme-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.memorial-image-container {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: var(--theme-radius-circle);
  background-color: var(--theme-surface-alt);
}

.memorial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memorial-card-content {
  padding: var(--theme-spacing-xs) var(--theme-spacing-sm) var(--theme-spacing-sm);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.memorial-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin-bottom: 4px;
}

.memorial-card-dates {
  font-size: 12px;
  color: var(--theme-text-secondary);
  margin-bottom: 6px;
}

.memorial-card-bio {
  font-size: 11px;
  color: var(--theme-text-tertiary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contributor Profile */
.contributor-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--theme-spacing-xs);
  border-top: 1px solid var(--theme-border);
}

.contributor-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-border);
}

.contributor-info {
  flex: 1;
  text-align: left;
}

.contributor-label {
  font-size: 8px;
  color: var(--theme-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}

.contributor-name {
  font-size: 11px;
  color: var(--theme-text-secondary);
  font-weight: 600;
}

/* Swiper Slides */
.memorial-swiper .swiper-slide {
  /* Fixed slide size across breakpoints; Swiper uses slidesPerView:'auto' */
  width: 180px;
}

/* Swiper Pagination */
.swiper-pagination {
  position: relative !important;
  margin-top: var(--theme-spacing-md);
  padding: 0 30px;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: var(--theme-border);
  opacity: 1;
  transition: var(--theme-transition);
  margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
  background-color: var(--theme-primary);
  width: 24px;
  border-radius: 4px;
}

.swiper-pagination-bullet-active-main {
  background-color: var(--theme-primary);
}

.swiper-pagination-bullet-active-prev,
.swiper-pagination-bullet-active-next {
  background-color: var(--theme-primary);
  opacity: 0.6;
}

.swiper-pagination-bullet-active-prev-prev,
.swiper-pagination-bullet-active-next-next {
  background-color: var(--theme-border);
  opacity: 0.4;
}

/* Memorial Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content-app {
  position: relative;
  background-color: white;
  border-radius: var(--theme-radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10000;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-app {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.modal-app-body {
  padding: var(--theme-spacing-lg);
}

.modal-image-large {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--theme-spacing-lg);
  border-radius: var(--theme-radius-circle);
  overflow: hidden;
}

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

.modal-info-section {
  text-align: center;
}

.modal-name-app {
  font-size: 28px;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin-bottom: 8px;
}

.modal-dates-app {
  font-size: 16px;
  color: var(--theme-text-secondary);
  margin-bottom: 4px;
}

.modal-age-app {
  font-size: 14px;
  color: var(--theme-text-tertiary);
  margin-bottom: var(--theme-spacing-lg);
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--theme-spacing-md);
  margin-bottom: var(--theme-spacing-lg);
  text-align: left;
}

.detail-item {
  display: flex;
  gap: var(--theme-spacing-sm);
  align-items: flex-start;
}

.detail-icon {
  font-size: 24px;
}

.detail-label {
  font-size: 12px;
  color: var(--theme-text-tertiary);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 15px;
  color: var(--theme-text-primary);
  font-weight: 600;
}

.modal-biography-section {
  margin-bottom: var(--theme-spacing-lg);
  text-align: left;
}

.biography-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin-bottom: var(--theme-spacing-sm);
}

.modal-biography-app {
  font-size: 14px;
  line-height: 1.6;
  color: var(--theme-text-secondary);
}

.modal-epitaph-card {
  background-color: var(--theme-surface-alt);
  padding: var(--theme-spacing-lg);
  border-radius: var(--theme-radius-md);
  margin-bottom: var(--theme-spacing-lg);
  border-left: 4px solid var(--theme-primary);
}

.modal-epitaph-app {
  font-size: 16px;
  font-style: italic;
  color: var(--theme-text-primary);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: var(--theme-spacing-sm);
}

.action-btn-app {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--theme-spacing-xs);
  padding: var(--theme-spacing-md);
  border-radius: var(--theme-radius-md);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--theme-transition);
}

.btn-light {
  background-color: var(--theme-surface-alt);
  color: var(--theme-primary);
}

.btn-tribute {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: white;
}

.btn-tribute:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
/* ===== END: style.css ===== */

/* ===== BEGIN: app.css (original) ===== *//* App-specific styles */

/* App Container */
.app-container {
  min-height: 100vh;
  padding-bottom: 80px;
}

.tabs-swiper {
  height: 100%;
}

.tab-slide {
  height: auto;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.tab-content-inner {
  min-height: 100vh;
  max-width: 1100px;
  margin: auto;
  scroll-behavior: smooth;
}

/* Tab Header */
.tab-header {
  padding: 30px 30px 20px;
  text-align: center;
}

.tab-title {
  font-family: 'Anybody', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #2b2b2b;
  margin: 0 0 8px;
}

.tab-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid #f0f0f0;
}

.nav-glider {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 3px;
  background: linear-gradient(135deg, #FF6B00, #FF9800);
  border-radius: 0 0 3px 3px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: #999;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
  color: #FF6B00;
}

.nav-item .nav-icon {
  transition: transform 0.3s ease;
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
}

/* removed nav-fab; Create is now a bottom sheet opened from Profile */

/* Bottom sheet modal */
.modal.sheet {
  align-items: flex-end;
}

.sheet-content {
  position: relative;
  width: 100%;
  max-height: 92vh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  z-index: 1;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal.active.sheet .sheet-content {
  transform: translateY(0);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #eaeaea;
  margin: 10px auto 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.sheet-title {
  font-family: 'Anybody', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2b2b2b;
}

.sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
}

.sheet-body {
  padding: 14px 18px 22px;
  overflow: auto;
  max-height: calc(92vh - 56px);
}

/* Store sheet */
.store-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  margin-bottom: 16px;
  background: #fff;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Home: Upgrades / Store cards */
.home-upgrades-section {
  padding: 10px 0 40px;
}

.upgrades-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 16px;
}

.upgrades-header .section-title {
  margin: 0;
}

.section-subtitle {
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.upgrade-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  color: #1a1a1a;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.upgrade-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.35);
}

.upgrade-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.upgrade-card__title {
  font-family: 'Anybody', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.upgrade-card__price {
  font-size: 12px;
  font-weight: 700;
  color: #FF6B00;
  background: rgba(255, 107, 0, 0.10);
  border: 1px solid rgba(255, 107, 0, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.upgrade-card__desc {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.45;
  margin-bottom: 12px;
}

.upgrade-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FF6B00, #FF9800);
}

.upgrade-card--slots {
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 107, 0, 0.25) 0%, rgba(255, 152, 0, 0.06) 55%, #fff 100%);
}

.upgrade-card--custom {
  background: radial-gradient(120% 140% at 0% 0%, rgba(75, 0, 255, 0.18) 0%, rgba(255, 107, 0, 0.08) 55%, #fff 100%);
}

.upgrade-card--featured {
  background: radial-gradient(120% 140% at 0% 0%, rgba(0, 200, 255, 0.20) 0%, rgba(255, 152, 0, 0.08) 55%, #fff 100%);
}

@media (max-width: 980px) {
  .upgrades-grid {
    grid-template-columns: 1fr;
  }
}

/* Create memorial: custom link UI */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.link-upgrade-btn {
  background: rgba(255, 107, 0, 0.10);
  color: #FF6B00;
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.form-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}

/* Memorial modal: share link */
.memorial-share {
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 14px;
  text-align: left;
}

.memorial-share__label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.memorial-share__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.memorial-share__input {
  flex: 1;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #2b2b2b;
  background: #fff;
}

.memorial-share__btn {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #FF6B00, #FF9800);
}

.memorial-share__meta {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #777;
  font-size: 12px;
}

.memorial-share__id {
  color: #2b2b2b;
  font-weight: 700;
}

.store-balance-label {
  font-size: 12px;
  color: #666;
}

.store-balance-value {
  font-family: 'Anybody', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #FF6B00;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.store-card {
  border: 2px solid #f0f0f0;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.store-card-title {
  font-family: 'Anybody', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 6px;
}

.store-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.store-card-meta {
  font-size: 12px;
  color: #FF6B00;
  margin-bottom: 12px;
  font-weight: 600;
}

.store-note {
  font-size: 12px;
  color: #666;
  margin-top: 14px;
}

/* Search */
.search-container {
  padding: 0 20px 15px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f5;
  border-radius: 25px;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  background: #fff;
  outline: 2px solid #FF6B00;
}

.search-icon {
  color: #999;
}

.search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  color: #2b2b2b;
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 10px 18px;
  background: #f5f5f5;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  background: #eee;
}

.filter-chip.active {
  background: linear-gradient(135deg, #FF6B00, #FF9800);
  color: #fff;
}

/* Memorial card meta chips */
.memorial-meta {
  display: none;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 6px 0 6px;
}

.meta-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.06);
  color: #FF6B00;
  border: 1px solid rgba(255, 107, 0, 0.15);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-chip-muted {
  background: #f7f7f8;
  color: #666;
  border-color: #f0f0f0;
}

/* Explore Grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 0 20px 100px;
}

/* Home: News + Contributors Swipers */
.news-swiper,
.contributors-swiper {
  padding: 0 15px;
}

.news-swiper .swiper-slide {
  width: 260px;
}

.news-card {
  border: 2px solid #f0f0f0;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  cursor: pointer;
}

.news-tag {
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #FF6B00;
  background: rgba(255, 107, 0, 0.06);
  border: 1px solid rgba(255, 107, 0, 0.15);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.news-title {
  font-family: 'Anybody', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 6px;
}

.news-subtitle {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.contributors-swiper .swiper-slide {
  width: 160px;
}

.contributor-card {
  border: 2px solid #f0f0f0;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.contributor-card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 0, 0.2);
  margin-bottom: 10px;
}

.contributor-card-name {
  font-family: 'Anybody', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 4px;
}

.contributor-card-meta {
  font-size: 12px;
  color: #666;
}

/* Contributor Modal */
.contributor-modal {
  max-width: 420px;
}

.contrib-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contrib-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 0, 0.2);
  background: #fff;
}

.contrib-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.contrib-name {
  font-family: 'Anybody', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #2b2b2b;
}

.contrib-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 0 6px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 18px;
}

.contrib-stat {
  text-align: center;
}

.contrib-stat-value {
  font-family: 'Anybody', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FF6B00;
  margin-bottom: 2px;
}

.contrib-stat-label {
  font-size: 11px;
  color: #666;
}

.contrib-actions {
  margin-top: 6px;
}

/* Explore Canvas */
.explore-canvas-shell {
  width: 100%;
  height: 520px;
  margin: 0;
  padding: 0 15px 20px;
}

@media (min-height: 780px) {
  .explore-canvas-shell {
    height: 600px;
  }
}

.explore-canvas-shell canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
}

/* Create Form */
.create-form-wrapper {
  padding: 0 20px 100px;
}

.memorial-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-size: 15px;
  color: #2b2b2b;
  background: #fff;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #FF6B00;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.photo-upload {
  width: 100%;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  border: 2px dashed #ddd;
  border-radius: 16px;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-placeholder:hover {
  border-color: #FF6B00;
  color: #FF6B00;
}

.photo-placeholder img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Messages */
.messages-list {
  padding: 0 20px 100px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 20px;
  color: #2b2b2b;
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
}

/* Profile */
.profile-wrapper {
  padding: 0 20px 100px;
}

.profile-card {
  text-align: center;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 20px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00, #FF9800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
}

.profile-email {
  color: #666;
  margin: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 16px;
}

.stat-box .stat-value {
  font-family: 'Anybody', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #FF6B00;
  margin: 0 0 4px;
}

.stat-box .stat-label {
  font-size: 12px;
  color: #666;
}

.profile-menu {
  background: #f9f9f9;
  border-radius: 16px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: #2b2b2b;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #f0f0f0;
}

.menu-item.danger {
  color: #e53935;
}

/* Modal Base */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

/* Full-screen Memorial Modal */
.memorial-modal-fullscreen .modal-content {
  position: fixed;
  inset: 0;
  max-width: 100%;
  width: 100%;
  max-height: 100vh;
  height: 100%;
  border-radius: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.memorial-modal-fullscreen.active .modal-content {
  transform: translateX(0);
}

.memorial-modal-fullscreen .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.memorial-modal-fullscreen.active .modal-overlay {
  opacity: 1;
}

.memorial-modal-fullscreen .modal-close {
  position: fixed;
  top: 20px;
  left: 20px;
  right: auto;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
}

.memorial-modal-fullscreen .modal-close svg {
  stroke: #fff;
  stroke-width: 2.5;
}

.memorial-modal-fullscreen .modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.memorial-modal-fullscreen .modal-body {
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.memorial-modal-fullscreen .modal-image {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  max-height: 500px;
  overflow: hidden;
}

.memorial-modal-fullscreen .modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memorial-modal-fullscreen .modal-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, #fff 0%, rgba(255,255,255,0.9) 30%, transparent 100%);
  pointer-events: none;
}

.memorial-modal-fullscreen .modal-info {
  padding: 0 28px 40px;
  margin-top: -60px;
  position: relative;
  background: #fff;
}

.memorial-modal-fullscreen .modal-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.memorial-modal-fullscreen .modal-dates {
  font-size: 18px;
  margin-bottom: 6px;
}

.memorial-modal-fullscreen .modal-age {
  font-size: 16px;
  margin-bottom: 24px;
}

/* Responsive for desktop */
@media (min-width: 768px) {
  .memorial-modal-fullscreen .modal-content {
    position: relative;
    inset: auto;
    max-width: 800px;
    width: 92%;
    max-height: 92vh;
    height: auto;
    border-radius: 24px;
    transform: translateY(40px) scale(0.94);
    opacity: 0;
    overflow: hidden;
  }
  
  .memorial-modal-fullscreen.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  
  .memorial-modal-fullscreen .modal-close {
    position: absolute;
    top: 20px;
    left: auto;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
  }
  
  .memorial-modal-fullscreen .modal-body {
    max-height: 92vh;
    overflow-y: auto;
  }
  
  .memorial-modal-fullscreen .modal-image {
    height: 400px;
    border-radius: 24px 24px 0 0;
  }
  
  .memorial-modal-fullscreen .modal-info {
    padding: 0 32px 32px;
    margin-top: -50px;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #666;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #eee;
}

.modal-body {
  padding: 24px;
}

/* Memorial Modal */
.modal-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  text-align: center;
}

.modal-name {
  font-family: 'Anybody', sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
}

.modal-dates {
  color: #666;
  margin: 0 0 4px;
}

.modal-age {
  color: #999;
  font-size: 14px;
  margin: 0 0 20px;
}

/* Memorial modal contributor */
.modal-contributor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  margin: 0 0 18px;
  cursor: pointer;
}

.modal-contributor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 0, 0.2);
}

.modal-contributor-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.modal-contributor-name {
  font-family: 'Anybody', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2b2b2b;
}

.modal-details {
  text-align: left;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-icon {
  font-size: 20px;
}

.detail-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.detail-value {
  display: block;
  font-weight: 600;
  color: #2b2b2b;
}

.modal-section {
  text-align: left;
  margin-bottom: 20px;
}

.modal-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

.modal-section p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.modal-epitaph {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), rgba(255, 152, 0, 0.05));
  border-left: 3px solid #FF6B00;
  padding: 16px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 20px;
}

.modal-epitaph p {
  font-style: italic;
  color: #555;
  margin: 0;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Auth Modal */
.auth-modal {
  max-width: 400px;
}

.auth-header {
  text-align: center;
  padding: 30px 24px 20px;
}

.auth-logo {
  font-family: 'Anybody', sans-serif;
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF6B00, #FF9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
}

.auth-tagline {
  color: #666;
  margin: 0;
}

.auth-tabs {
  display: flex;
  padding: 0 24px;
  gap: 0;
  border-bottom: 1px solid #f0f0f0;
}

.auth-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.auth-tab.active {
  color: #FF6B00;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #FF6B00;
}

.auth-form {
  display: none;
  padding: 24px;
}

.auth-form.active {
  display: block;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 14px;
  color: #FF6B00;
  text-decoration: none;
  margin-bottom: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #999;
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0f0f0;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2b2b2b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #eee;
}

.otp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: none;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.otp-btn:hover {
  border-color: #FF6B00;
  color: #FF6B00;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
}

.otp-section {
  margin-top: 24px;
}

.otp-text {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.otp-input:focus {
  outline: none;
  border-color: #FF6B00;
}

.resend-link {
  display: block;
  text-align: center;
  color: #FF6B00;
  font-size: 14px;
  margin-top: 16px;
  text-decoration: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #2b2b2b;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: #4caf50;
}

.toast.error {
  background: #e53935;
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
  
  .app-container {
    padding-bottom: 0;
  }
  
  .tabs-swiper {
    pointer-events: none;
  }
  
  .tab-slide {
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    display: none;
  }
  
  .first-screen {
    height: auto;
    min-height: auto;
  }
  
  .tab-title {
    font-size: 26px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-fade {
  animation: fadeIn 0.5s ease;
}

.animate-slide {
  animation: slideUp 0.5s ease;
}

/* ===== END: app.css (original) ===== */

/* ===== BEGIN: enhanced.css (scoped) ===== *//* Enhanced styles for detail pages */

/* Reset background and set clean layout */
body.enhanced-page {
  background: #fff;
}

body.enhanced-page .bg-gradient {
  display: none;
}

/* Page header with breadcrumb */
body.enhanced-page .page-header {
  background: #f8f9fa;
  padding: 24px 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 40px;
}

body.enhanced-page .breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

body.enhanced-page .breadcrumb li {
  display: flex;
  align-items: center;
}

body.enhanced-page .breadcrumb li:not(:last-child):after {
  content: "/";
  margin: 0 8px;
  color: #adb5bd;
}

body.enhanced-page .breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}

body.enhanced-page .breadcrumb a:hover {
  color: #0026d4;
}

body.enhanced-page .breadcrumb li:last-child {
  color: #495057;
  font-weight: 500;
}

/* Main content layouts */
body.enhanced-page .content-area {
  padding: 0 0 80px;
}

/* Two-column layout */
body.enhanced-page .two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Card styles */
body.enhanced-page .content-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 30px;
  margin-bottom: 30px;
}

body.enhanced-page .content-card h2 {
  margin-top: 0;
  font-family: "DM Serif Display", serif;
  font-size: 24px;
}

/* Post specific styles */
body.enhanced-page .post-header {
  margin-bottom: 30px;
}

body.enhanced-page .post-title {
  font-family: "DM Serif Display", serif;
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1a1c1e;
}

body.enhanced-page .post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 24px;
}

body.enhanced-page .post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.enhanced-page .post-meta svg {
  width: 16px;
  height: 16px;
}

body.enhanced-page .post-featured-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

body.enhanced-page .post-content {
  font-size: 18px;
  line-height: 1.6;
  color: #343a40;
}

body.enhanced-page .post-content p {
  margin-bottom: 20px;
}

/* Sidebar widgets */
body.enhanced-page .sidebar-widget {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
}

body.enhanced-page .sidebar-widget h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 16px;
  color: #343a40;
}

body.enhanced-page .sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.enhanced-page .sidebar-widget li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

body.enhanced-page .sidebar-widget li:last-child {
  border-bottom: none;
}

body.enhanced-page .sidebar-widget a {
  color: #495057;
  text-decoration: none;
}

body.enhanced-page .sidebar-widget a:hover {
  color: #0026d4;
}

/* Author bio */
body.enhanced-page .author-bio {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

body.enhanced-page .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

body.enhanced-page .author-info h3 {
  margin-top: 0;
  font-size: 18px;
}

body.enhanced-page .author-info p {
  color: #6c757d;
  font-size: 15px;
  line-height: 1.5;
}

/* Product page styles */
body.enhanced-page .product-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 60px;
}

body.enhanced-page .product-image {
  width: 100%;
  border-radius: 12px;
}

body.enhanced-page .product-details h1 {
  font-family: "DM Serif Display", serif;
  font-size: 36px;
  margin: 0 0 16px;
}

body.enhanced-page .product-meta {
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 15px;
}

body.enhanced-page .product-price {
  font-size: 24px;
  font-weight: 600;
  color: #0026d4;
  margin: 20px 0;
}

body.enhanced-page .product-description {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 30px;
}

body.enhanced-page .product-actions {
  display: flex;
  gap: 16px;
}

body.enhanced-page .btn-primary {
  background: #0026d4;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

body.enhanced-page .btn-outline {
  background: transparent;
  border: 1px solid #0026d4;
  color: #0026d4;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* Course page styles */
body.enhanced-page .course-header {
  margin-bottom: 40px;
}

body.enhanced-page .course-title {
  font-family: "DM Serif Display", serif;
  font-size: 36px;
  margin: 0 0 16px;
}

body.enhanced-page .course-meta {
  display: flex;
  gap: 20px;
  color: #6c757d;
  margin-bottom: 20px;
}

body.enhanced-page .course-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

body.enhanced-page .curriculum-section {
  margin-bottom: 30px;
}

body.enhanced-page .curriculum-section h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

body.enhanced-page .lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.enhanced-page .lesson-item {
  padding: 14px 20px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

body.enhanced-page .lesson-title {
  font-weight: 500;
}

body.enhanced-page .lesson-duration {
  color: #6c757d;
  font-size: 14px;
}

body.enhanced-page .course-sidebar {
  position: sticky;
  top: 100px;
}

body.enhanced-page .enrollment-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 24px;
}

body.enhanced-page .enrollment-card h3 {
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 16px;
}

body.enhanced-page .enrollment-price {
  font-size: 28px;
  font-weight: 600;
  color: #0026d4;
  margin-bottom: 20px;
}

body.enhanced-page .enrollment-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

body.enhanced-page .enrollment-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.enhanced-page .enrollment-features li:before {
  content: "âœ“";
  color: #0026d4;
  font-weight: bold;
}

body.enhanced-page .btn-full {
  width: 100%;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  body.enhanced-page .two-column {
    grid-template-columns: 1fr;
  }
  
  body.enhanced-page .product-grid {
    grid-template-columns: 1fr;
  }
  
  body.enhanced-page .post-title {
    font-size: 32px;
  }
  
  body.enhanced-page .course-sidebar {
    position: static;
  }
  
  body.enhanced-page .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body.enhanced-page .content-card {
    padding: 20px;
  }
  
  body.enhanced-page .post-content {
    font-size: 16px;
  }
}
/* ===== END: enhanced.css (scoped) ===== */

/* ====== MULTI-LANGUAGE SUPPORT ====== */

/* Language Selector */
.nav-right {
  position: relative;
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px !important;
  cursor: pointer;
  position: relative;
  background: #fff !important;
  border: 2px solid #f0f0f0;
  color: #2b2b2b;
}

.language-selector:hover {
  border-color: #FF6B00;
}

.language-selector svg {
  transition: transform 0.3s ease;
}

.language-menu.active ~ .language-selector svg {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #f0f0f0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  overflow: hidden;
}

.language-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
}

.lang-menu-item:last-child {
  border-bottom: none;
}

.lang-menu-item:hover {
  background: #f9f9f9;
}

.lang-menu-item.active {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(255, 152, 0, 0.08));
}

.lang-menu-item.active .lang-code {
  color: #FF6B00;
  font-weight: 700;
}

.lang-name {
  font-size: 14px;
  color: #2b2b2b;
  font-weight: 500;
}

.lang-code {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile language selector */
@media (max-width: 980px) {
  .language-selector {
    padding: 6px 10px !important;
    font-size: 13px;
    display: inline-flex !important;
  }
  
  .language-menu {
    min-width: 150px;
    right: 0;
    top: calc(100% + 6px);
  }
  
  .nav-right > div {
    display: inline-block;
  }
}

/* RTL Support */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  text-align: right;
}

/* RTL specific adjustments */
html[dir="rtl"] .hero-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-left {
  order: 2;
}

html[dir="rtl"] .nav-right {
  order: 1;
}

html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-top {
  direction: rtl;
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .sheet-close {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .memorial-modal-fullscreen .modal-close {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .contributor-profile,
html[dir="rtl"] .modal-contributor {
  flex-direction: row-reverse;
}

html[dir="rtl"] .detail-row {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .form-label-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-buttons {
  flex-direction: row-reverse;
}

html[dir="rtl"] .section-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .upgrades-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-nav {
  flex-direction: row-reverse;
}

html[dir="rtl"] .auth-divider {
  flex-direction: row-reverse;
}

html[dir="rtl"] .memorial-share__row {
  flex-direction: row-reverse;
}

/* Persian font support */
body.rtl-mode,
html[dir="rtl"] body {
  font-family: 'Vazirmatn', 'Inter', sans-serif;
}

html[dir="rtl"] .title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .tab-title {
  font-family: 'Vazirmatn', 'Anybody', sans-serif;
}

/* Adjust letter spacing for Persian */
html[dir="rtl"] .title {
  letter-spacing: 0;
}

@media (max-width: 980px) {
  html[dir="rtl"] .mobile-cta {
    order: 2;
  }
  
  html[dir="rtl"] .hamburger {
    order: 1;
  }
  
  html[dir="rtl"] .memorial-modal-fullscreen .modal-content {
    transform: translateX(-100%);
  }
  
  html[dir="rtl"] .memorial-modal-fullscreen.active .modal-content {
    transform: translateX(0);
  }
}

/* ====== STORE TAB STYLES ====== */

/* Bottom nav with 5 items */
.bottom-nav--5 .nav-glider {
  width: 20%;
}

.bottom-nav--5 .nav-item {
  flex: 1;
}

.bottom-nav--5 .nav-label {
  font-size: 10px;
}

/* Store Tab */
.store-tab {
  padding-bottom: 100px;
}

.store-tab-header {
  position: relative;
  background: linear-gradient(135deg, #FF6B00 0%, #FF9800 50%, #FFB74D 100%);
  border-radius: 0 0 32px 32px;
  padding: 30px 30px 50px;
  margin: 0 0 20px;
  color: #fff;
}

.store-tab-header .tab-title {
  color: #fff;
}

.store-tab-header .tab-subtitle {
  color: rgba(255,255,255,0.85);
}

.store-credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 999px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 15px;
}

.store-credits-badge svg {
  opacity: 0.9;
}

/* Store Sections */
.store-section {
  padding: 0 20px;
  margin-bottom: 32px;
}

.store-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.store-section .section-title {
  font-family: 'Anybody', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #2b2b2b;
  margin: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
}

.section-hint {
  font-size: 13px;
  color: #888;
}

/* Store Swipers */
.store-swiper {
  padding: 10px 0;
  overflow: visible;
}

.store-swiper .swiper-slide {
  width: 200px;
}

/* Credit Pack Cards */
.credit-pack-card {
  position: relative;
  background: linear-gradient(145deg, #FF7B1C 0%, #FF9800 100%);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credit-pack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.35);
}

.credit-pack-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.credit-pack-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credit-pack-amount {
  font-family: 'Anybody', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.credit-pack-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 8px;
}

.credit-pack-price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.credit-pack-bonus {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  min-height: 18px;
}

.credit-pack-btn {
  background: #fff;
  color: #FF6B00;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.credit-pack-btn:hover {
  background: #fff8f0;
  transform: scale(1.02);
}

/* Popular pack variant */
.credit-pack-popular {
  background: linear-gradient(145deg, #FF5722 0%, #FF9800 100%);
}

/* Premium pack variant */
.credit-pack-premium {
  background: linear-gradient(145deg, #E65100 0%, #FF6D00 100%);
}

/* Ultimate pack variant */
.credit-pack-ultimate {
  background: linear-gradient(145deg, #BF360C 0%, #E65100 50%, #FF6B00 100%);
}

/* Upgrade Cards V2 */
.upgrade-card-v2 {
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upgrade-card-v2:hover {
  border-color: #FF6B00;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.12);
}

.upgrade-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 152, 0, 0.1));
  border-radius: 14px;
  color: #FF6B00;
}

.upgrade-icon svg {
  width: 24px;
  height: 24px;
}

.upgrade-name {
  font-family: 'Anybody', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 6px;
}

.upgrade-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  margin-bottom: 10px;
}

.upgrade-cost {
  font-size: 14px;
  font-weight: 700;
  color: #FF6B00;
  margin-bottom: 12px;
}

.upgrade-btn {
  background: linear-gradient(135deg, #FF6B00, #FF9800);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* Upgrade card variants */
.upgrade-slots .upgrade-icon {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.2));
  color: #2196F3;
}

.upgrade-custom .upgrade-icon {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.2));
  color: #9C27B0;
}

.upgrade-featured .upgrade-icon {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.2));
  color: #FF9800;
}

.upgrade-theme .upgrade-icon {
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.1), rgba(0, 150, 136, 0.2));
  color: #009688;
}

/* Gift Cards */
.gift-card {
  position: relative;
  background: linear-gradient(145deg, #FF8A65 0%, #FF7043 50%, #FF5722 100%);
  border-radius: 20px;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.25);
  transition: all 0.3s ease;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 87, 34, 0.35);
}

.gift-card-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.gift-card-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.gift-card-logo {
  font-family: 'Anybody', sans-serif;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gift-card-value {
  font-family: 'Anybody', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.gift-card-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

.gift-card-btn {
  position: relative;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gift-card-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Gift card variants */
.gift-card-gold {
  background: linear-gradient(145deg, #FFB74D 0%, #FFA726 50%, #FF9800 100%);
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3);
}

.gift-card-platinum {
  background: linear-gradient(145deg, #90A4AE 0%, #78909C 50%, #546E7A 100%);
  box-shadow: 0 8px 24px rgba(84, 110, 122, 0.3);
}

/* Purchase History */
.purchase-history {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.purchase-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.purchase-item:last-child {
  border-bottom: none;
}

.purchase-sku {
  font-weight: 600;
  color: #2b2b2b;
  font-size: 14px;
}

.purchase-date {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.purchase-credits {
  font-weight: 700;
  color: #4caf50;
  font-size: 14px;
}

.empty-state.small {
  padding: 30px 20px;
}

.empty-state.small p {
  font-size: 14px;
  color: #888;
}

/* Store Footer */
.store-footer {
  text-align: center;
  padding: 30px 20px;
  color: #888;
  font-size: 13px;
}

.store-footer p {
  margin: 0 0 12px;
}

.store-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.store-footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
}

.store-footer-links a:hover {
  color: #FF6B00;
}

/* Responsive */
@media (max-width: 768px) {
  .store-tab-header {
    padding: 25px 20px 40px;
    border-radius: 0 0 24px 24px;
  }
  
  .store-section {
    padding: 0 15px;
  }
  
  .store-swiper .swiper-slide {
    width: 170px;
  }
  
  .credit-pack-amount {
    font-size: 42px;
  }
  
  .credit-pack-card {
    min-height: 200px;
    padding: 20px 16px;
  }
}
