/* landing-sections.css
   landing page and marketing page section styles
   extracted from the monolithic css/landing.css

   includes:
   - landing-specific reset (*, html, body)
   - landing-specific :root variables and [data-theme="light"] overrides
   - hero section (full-viewport landing hero with badge, title, subtitle, actions, scroll indicator)
   - hero video runway and video section (gsap canvas scroll)
   - content overlay (slides over pinned video)
   - section-title and section-subtitle (landing versions)
   - features section (glass panel, feature cards, grid)
   - stats section (glass panel, stat items, grid)
   - partners section (pills grid)
   - glass-panel reusable component
   - how-it-works section (steps container with connecting line)
   - testimonials section (card grid with quotes)
   - cta section (call to action)
   - pricing hero, pricing grid, pricing cards, pricing faq, pricing guarantee
   - pricing owned states and pricing toast
   - footer disclaimer
   - paywall acknowledgment checkbox and disabled button
   - profile page (header, stats, achievements, progress, activity, friends, settings)
   - responsive @media queries for all above sections
   - prefers-reduced-motion rules for landing elements

   does NOT include (already extracted to modular files):
   - .landing-bg orbs, @keyframes orbFloat* -> background.css
   - .landing-nav, .theme-toggle, .landing-nav-hamburger, .sound-toggle-btn -> nav.css
   - .landing-footer, .footer-inner, .footer-columns, .footer-bottom -> footer.css
   - .courses-hero, .courses-filters, .courses-grid, .course-card -> courses.css
   - .calc-* calculator styles -> calculator.css
   - .xp-bar-*, .xp-toast, .level-toast, .streak-badge, .achievement-toast,
     .quest-toggle, .quest-panel, .progress-path-* -> gamification.css
   - .auth-nav-btn, .user-menu, .auth-modal, .auth-modal-consent -> auth.css
   - .legal-page, .legal-content -> legal.css
*/

/* ============================================== */
/* landing reset                                   */
/* ============================================== */

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* gsap handles smooth scroll */
  overflow-x: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================== */
/* landing-specific theme variables                */
/* ============================================== */

:root {
  --landing-nav-bg: rgba(0, 0, 0, 0.4);
  --landing-nav-bg-scrolled: rgba(0, 0, 0, 0.72);
  --landing-nav-border: rgba(255, 255, 255, 0.06);
  --button-ghost-bg: rgba(255, 255, 255, 0.06);
  --button-ghost-bg-hover: rgba(255, 255, 255, 0.1);
  --button-ghost-border: rgba(255, 255, 255, 0.1);
  --button-ghost-border-hover: rgba(255, 255, 255, 0.2);
  --card-bg-start: rgba(255, 255, 255, 0.06);
  --card-bg-end: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-top-line: rgba(255, 255, 255, 0.2);
  --tag-bg: rgba(255, 255, 255, 0.04);
  --tag-border: rgba(255, 255, 255, 0.06);
  --footer-divider: rgba(255, 255, 255, 0.06);
  --video-fade-top: #000000;
  --content-overlay-bg: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.84) 16%,
    var(--bg-primary) 42%
  );
  --accent-contrast: #000;
}

[data-theme="light"] {
  --landing-nav-bg: rgba(255, 255, 255, 0.58);
  --landing-nav-bg-scrolled: rgba(255, 255, 255, 0.9);
  --landing-nav-border: rgba(15, 23, 42, 0.08);
  --button-ghost-bg: rgba(255, 255, 255, 0.66);
  --button-ghost-bg-hover: rgba(255, 255, 255, 0.85);
  --button-ghost-border: rgba(15, 23, 42, 0.12);
  --button-ghost-border-hover: rgba(15, 23, 42, 0.22);
  --card-bg-start: rgba(255, 255, 255, 0.9);
  --card-bg-end: rgba(255, 255, 255, 0.72);
  --card-border: rgba(15, 23, 42, 0.1);
  --card-top-line: rgba(15, 23, 42, 0.14);
  --tag-bg: rgba(15, 23, 42, 0.04);
  --tag-border: rgba(15, 23, 42, 0.1);
  --footer-divider: rgba(15, 23, 42, 0.12);
  --video-fade-top: #f5f5f7;
  --content-overlay-bg: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(245, 245, 247, 0.88) 16%,
    var(--bg-primary) 42%
  );
  --accent-contrast: #04130d;
}

/* ============================================== */
/* hero section                                    */
/* ============================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 960px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.hero-title {
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  padding-bottom: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.hero-title-accent {
  display: block;
  color: var(--text-primary);
  font-size: clamp(1.8rem, 4.6vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  white-space: nowrap;
  padding-bottom: 4px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.hero-btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-btn--ghost {
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  border: 1px solid var(--button-ghost-border);
  backdrop-filter: blur(10px);
}

.hero-btn--ghost:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--text-muted);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================== */
/* video runway and video section                  */
/* ============================================== */

/* video runway spacer - fades page background into video's white background */
.hero-video-runway {
  position: relative;
  height: 30vh;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--video-bg) 100%);
}

.hero-video-runway::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12vh;
  height: 12vh;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
}

/* video section */
.video-section {
  position: relative;
  background: var(--video-bg);
  isolation: isolate;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: var(--z-raised);
  contain: layout style paint;
}

/* smooth gradient fade from runway into video content */
.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15vh;
  background: linear-gradient(to bottom, var(--video-bg) 0%, transparent 100%);
  z-index: var(--z-content);
  pointer-events: none;
}

/* canvas is the visible display surface */
/* dark mode inverts the canvas so the white video bg becomes black */
.video-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--video-bg);
  transform: translateZ(0);
  filter: invert(1) hue-rotate(180deg);
}

[data-theme="light"] .video-container canvas {
  filter: none;
}

/* video is hidden - used only as a frame source for canvas */
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* content overlay: slides up over pinned video */
.content-overlay {
  position: relative;
  z-index: var(--z-content);
  margin-top: -80vh;
  padding-top: 27vh;
  padding-bottom: 40px;
  background: transparent;
  contain: layout style;
}

/* ============================================== */
/* shared section styling                          */
/* ============================================== */

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

/* ============================================== */
/* features section                                */
/* ============================================== */

.features {
  padding: 320px 40px 180px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-glass {
  position: relative;
  padding: 56px 48px 56px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.features-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.2) 70%,
    transparent 100%
  );
}

.features-glass::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(52, 211, 153, 0.04) 0%,
    transparent 50%
  );
  pointer-events: none;
}

[data-theme="light"] .features-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .features-glass::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.7) 70%,
    transparent 100%
  );
}

[data-theme="light"] .features-glass::after {
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(16, 185, 129, 0.05) 0%,
    transparent 50%
  );
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

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

.feature-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    var(--card-bg-start) 0%,
    var(--card-bg-end) 100%
  );
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 40px rgba(52, 211, 153, 0.05);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-top-line),
    transparent
  );
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 20px;
}

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

.feature-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

[data-theme="light"] .feature-card-desc {
  color: var(--text-secondary);
}

/* ============================================== */
/* stats section                                   */
/* ============================================== */

.stats {
  padding: 120px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stats-glass {
  position: relative;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.stats-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  pointer-events: none;
}

[data-theme="light"] .stats-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

.stat-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================== */
/* partners section                                */
/* ============================================== */

.partners {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.partners-header {
  margin-bottom: 48px;
}

.partners-header .section-subtitle {
  margin-bottom: 0;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.partner-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--button-ghost-bg);
  border: 1px solid var(--button-ghost-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.partner-pill:hover {
  opacity: 1;
  border-color: var(--button-ghost-border-hover);
}

/* ============================================== */
/* reusable glass panel for content overlay        */
/* ============================================== */

.glass-panel {
  position: relative;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  pointer-events: none;
}

[data-theme="light"] .glass-panel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ============================================== */
/* how it works section                            */
/* ============================================== */

.how-it-works {
  padding: 120px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 80px;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
}

/* connecting line between steps */
.steps-container::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 56px;
  right: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5));
  opacity: 0.3;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

.step-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(52, 211, 153, 0.3);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: var(--z-raised);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================== */
/* testimonials section                            */
/* ============================================== */

.testimonials {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

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

.testimonial-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    var(--card-bg-start) 0%,
    var(--card-bg-end) 100%
  );
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-top-line),
    transparent
  );
}

.testimonial-quote-icon {
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================== */
/* cta section                                     */
/* ============================================== */

.cta {
  padding: 120px 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-content {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

.cta-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta .section-title {
  margin-bottom: 24px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ============================================== */
/* pricing page                                    */
/* ============================================== */

.pricing-hero {
  padding: 140px 40px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.pricing-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-hero .section-title {
  margin-bottom: 20px;
}

.pricing-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 120px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 40px 36px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.pricing-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .pricing-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .pricing-card::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

/* featured / recommended card */
.pricing-card--featured {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(52, 211, 153, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: scale(1.03);
}

.pricing-card--featured::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(52, 211, 153, 0.4),
    transparent
  );
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(52, 211, 153, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .pricing-card--featured {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(16, 185, 129, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pricing-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing-card-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.pricing-card--featured .pricing-card-amount {
  color: var(--accent);
}

.pricing-card-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card-savings {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}

.pricing-card-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.pricing-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-card-features li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.pricing-card-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  margin-top: auto;
}

.pricing-card-cta--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-card-cta--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pricing-card-cta--ghost {
  background: var(--button-ghost-bg);
  color: var(--text-primary);
  border: 1px solid var(--button-ghost-border);
}

.pricing-card-cta--ghost:hover {
  background: var(--button-ghost-bg-hover);
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-2px);
}

.pricing-card-guarantee {
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* pricing faq */
.pricing-faq {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.pricing-faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-faq-item {
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 0.3s ease;
}

.pricing-faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-faq-item.open {
  border-color: rgba(52, 211, 153, 0.15);
}

[data-theme="light"] .pricing-faq-item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border-color: rgba(255, 255, 255, 0.5);
}

.pricing-faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.pricing-faq-toggle svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.pricing-faq-item.open .pricing-faq-toggle svg {
  transform: rotate(180deg);
}

.pricing-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.pricing-faq-item.open .pricing-faq-answer {
  max-height: 200px;
}

.pricing-faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* pricing page guarantee */
.pricing-guarantee {
  text-align: center;
  padding: 0 40px 80px;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-guarantee-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  background: var(--accent-dim);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.pricing-guarantee-inner svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.pricing-guarantee-inner p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-guarantee-inner strong {
  color: var(--accent);
}

/* ============================================== */
/* pricing owned states                            */
/* ============================================== */

.pricing-card-cta--owned {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: default;
  pointer-events: auto;
}

.pricing-card-cta--owned:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================== */
/* pricing toast                                   */
/* ============================================== */

.pricing-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-elevated, rgba(30, 30, 46, 0.95));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  color: var(--text-primary, #fafafa);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: var(--z-modal);
  white-space: nowrap;
}

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

[data-theme="light"] .pricing-toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ============================================== */
/* footer disclaimer                               */
/* ============================================== */

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* ============================================== */
/* paywall acknowledgment checkbox                 */
/* ============================================== */

.paywall-acknowledge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.paywall-acknowledge input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.paywall-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   profile page
   ============================================================ */

.profile-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  min-height: 80vh;
}

/* loading state */
.profile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 400px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: profileSpin 0.8s linear infinite;
}

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

/* auth required */
.profile-auth-required {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  min-height: 400px;
  padding: 40px;
}

.profile-auth-required h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-auth-required p {
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

/* profile header */
.profile-header-section {
  margin-bottom: 32px;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-display-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-display-name--empty {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.profile-username {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.profile-username--empty {
  color: var(--text-muted);
  font-style: italic;
}

.profile-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-member-since {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-tier-badge--free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tier-badge--individual {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.profile-tier-badge--explorer {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.profile-tier-badge--full {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* stats grid */
.profile-stats-section {
  margin-bottom: 32px;
}

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

.profile-stat-card {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.profile-stat-icon svg {
  width: 20px;
  height: 20px;
}

.profile-stat-icon--xp {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.profile-stat-icon--streak {
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
}

.profile-stat-icon--progress {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent);
}

.profile-stat-icon--quests {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.profile-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.profile-stat-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.profile-stat-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.profile-stat-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s ease;
}

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

.profile-section-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-section-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* achievements grid */
.profile-achievements-section {
  margin-bottom: 32px;
}

.profile-achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.profile-achievement-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.profile-achievement-card--unlocked {
  opacity: 1;
  filter: none;
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.06);
}

.profile-achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.profile-achievement-card:not(.profile-achievement-card--unlocked) .profile-achievement-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.profile-achievement-info {
  flex: 1;
  min-width: 0;
}

.profile-achievement-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-achievement-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.profile-achievement-date {
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 3px;
  opacity: 0.8;
}

/* learning progress */
.profile-progress-section {
  margin-bottom: 32px;
}

.profile-progress-group {
  margin-bottom: 20px;
}

.profile-progress-group h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.profile-module-card {
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.profile-module-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.profile-module-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.profile-module-status {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-module-status--not-started {
  color: var(--text-muted);
  opacity: 0.6;
}

.profile-module-status--in-progress {
  color: #60a5fa;
}

.profile-module-status--complete {
  color: var(--accent);
}

.profile-module-score {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-peptides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.profile-peptide-card {
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.profile-peptide-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.profile-peptide-card--locked {
  opacity: 0.5;
  cursor: default;
}

.profile-peptide-card--locked:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

.profile-peptide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.profile-peptide-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-peptide-lock {
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-peptide-check {
  color: var(--accent);
  flex-shrink: 0;
}

.profile-peptide-score {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* recent activity */
.profile-activity-section {
  margin-bottom: 32px;
}

.profile-activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-activity-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px 0;
  text-align: center;
}

.profile-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.profile-activity-xp {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 60px;
}

.profile-activity-reason {
  font-size: 0.82rem;
  color: var(--text-primary);
  flex: 1;
}

.profile-activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* friends section */
.profile-friends-section {
  margin-bottom: 32px;
}

.profile-friend-requests {
  margin-bottom: 16px;
}

.profile-friend-requests h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-friend-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 8px;
}

.profile-friend-request-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-friend-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.profile-friend-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-friend-username {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.8;
}

.profile-friend-request-actions {
  display: flex;
  gap: 8px;
}

.profile-friend-accept-btn,
.profile-friend-decline-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.profile-friend-accept-btn {
  background: var(--accent);
  color: #000;
}

.profile-friend-decline-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-friend-accept-btn:hover,
.profile-friend-decline-btn:hover {
  opacity: 0.85;
}

/* friend search */
.profile-friend-search {
  margin-bottom: 16px;
}

.profile-search-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-search-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.profile-search-input:focus {
  border-color: var(--accent);
}

.profile-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.profile-search-btn {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.profile-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-search-loading,
.profile-search-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}

.profile-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.profile-search-result-info {
  flex: 1;
  min-width: 0;
}

.profile-friend-add-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #000;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.profile-friend-add-btn:hover {
  opacity: 0.85;
}

.profile-friend-add-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* friends list */
.profile-friends-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.profile-friends-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  grid-column: 1 / -1;
}

.profile-friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.profile-friend-card-info {
  flex: 1;
  min-width: 0;
}

.profile-friend-stats {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.profile-friend-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-friend-view-btn,
.profile-friend-remove-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.profile-friend-view-btn {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent);
}

.profile-friend-remove-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.profile-friend-view-btn:hover,
.profile-friend-remove-btn:hover {
  opacity: 0.75;
}

/* settings */
.profile-settings-section {
  margin-bottom: 40px;
}

.profile-settings-grid {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-setting-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-setting-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-setting-input-wrap {
  display: flex;
  gap: 8px;
}

.profile-setting-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.profile-setting-input:focus {
  border-color: var(--accent);
}

.profile-setting-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.profile-setting-save {
  padding: 10px 18px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.profile-setting-save:hover {
  opacity: 0.85;
}

.profile-setting-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.4;
}

.profile-setting-hint--error {
  color: #fb7185;
  opacity: 1;
}

.profile-setting-hint--success {
  color: var(--accent);
  opacity: 1;
}

.profile-setting-toggle-wrap {
  display: flex;
}

.profile-setting-toggle {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
}

.profile-setting-toggle:hover {
  border-color: var(--accent);
}

/* public profile */
.profile-public-back {
  margin-bottom: 20px;
}

.profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.profile-back-link:hover {
  opacity: 0.8;
}

.profile-public-error {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 60px 20px;
}

.profile-friend-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.profile-friend-action-btn:hover {
  opacity: 0.85;
}

.profile-friend-action-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.profile-friend-action-btn--friends {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent);
}

/* ============================================== */
/* prefers-reduced-motion                          */
/* ============================================== */

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .stat-item,
  .step-item,
  .cta-content,
  .testimonial-card,
  .partner-pill,
  .pricing-hero,
  .pricing-card,
  .pricing-faq-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================== */
/* responsive: 1024px                              */
/* ============================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container {
    flex-wrap: wrap;
  }

  .steps-container .step-item {
    flex: 1 1 calc(50% - 20px);
  }

  .steps-container::before {
    display: none;
  }

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

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 12px;
    padding: 0 20px 80px;
  }

  .pricing-card {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .pricing-card--featured {
    transform: none;
    order: 0;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  .pricing-card-name {
    font-size: 1rem;
  }

  .pricing-card-amount {
    font-size: 2rem;
  }

  .pricing-card-period {
    font-size: 0.75rem;
  }

  .pricing-card-savings {
    font-size: 0.7rem;
    margin-bottom: 16px;
  }

  .pricing-card-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    margin-bottom: 12px;
  }

  .pricing-card-features {
    gap: 10px;
    margin-bottom: 20px;
  }

  .pricing-card-features li {
    font-size: 0.78rem;
  }

  .pricing-card-cta {
    padding: 12px 12px;
    font-size: 0.82rem;
  }
}

/* ============================================== */
/* responsive: 768px                               */
/* ============================================== */

@media (max-width: 768px) {
  .hero-video-runway {
    height: 16vh;
  }

  .hero-video-runway::before {
    top: -6vh;
    height: 6vh;
  }

  .video-container {
    height: 66vh;
  }

  .video-container::before {
    height: 8vh;
  }

  .content-overlay {
    margin-top: -60vh;
    padding-top: 16vh;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  /* performance: remove backdrop-filter blur on mobile cards */
  .feature-card,
  .testimonial-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .features {
    padding: 210px 24px 120px;
  }

  .features-glass {
    padding: 40px 24px;
    border-radius: 24px;
  }

  /* bento grid: 6-col base with non-uniform card spans */
  .features-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }

  /* row 1: 2 cards (3+3) */
  .feature-card:nth-child(1) { grid-column: span 3; }
  .feature-card:nth-child(2) { grid-column: span 3; }
  /* row 2: 3 cards (2+2+2) */
  .feature-card:nth-child(3) { grid-column: span 2; }
  .feature-card:nth-child(4) { grid-column: span 2; }
  .feature-card:nth-child(5) { grid-column: span 2; }
  /* row 3: 2 cards (4+2) */
  .feature-card:nth-child(6) { grid-column: span 4; }
  .feature-card:nth-child(7) { grid-column: span 2; }
  /* row 4: 1 card full width */
  .feature-card:nth-child(8) { grid-column: span 6; }

  .feature-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .feature-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .feature-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-card-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .feature-card-desc {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* hide description on narrow bento cards (span-2) for clean look */
  .feature-card:nth-child(3) .feature-card-desc,
  .feature-card:nth-child(4) .feature-card-desc,
  .feature-card:nth-child(5) .feature-card-desc,
  .feature-card:nth-child(7) .feature-card-desc {
    display: none;
  }

  /* full-width card gets horizontal layout */
  .feature-card:nth-child(8),
  .feature-card:nth-child(6) {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .feature-card:nth-child(8) .feature-card-icon,
  .feature-card:nth-child(6) .feature-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .feature-card:nth-child(8) .feature-card-title,
  .feature-card:nth-child(6) .feature-card-title {
    margin-bottom: 4px;
  }

  .stats {
    padding: 80px 24px;
  }

  .stats-glass {
    padding: 40px 24px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .partners {
    padding: 60px 24px;
  }

  .glass-panel {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .how-it-works {
    padding: 80px 24px;
  }

  .steps-container {
    flex-direction: column;
    gap: 32px;
  }

  .steps-container::before {
    display: none;
  }

  .testimonials {
    padding: 80px 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 80px 24px;
  }

  .pricing-hero {
    padding: 120px 24px 60px;
  }

  .pricing-grid {
    gap: 8px;
    padding: 0 16px 60px;
  }

  .pricing-card {
    padding: 20px 10px;
    border-radius: 14px;
  }

  .pricing-card-name {
    font-size: 0.85rem;
  }

  .pricing-card-amount {
    font-size: 1.6rem;
  }

  .pricing-card-period {
    font-size: 0.65rem;
  }

  .pricing-card-savings {
    font-size: 0.62rem;
    margin-bottom: 10px;
  }

  .pricing-card-badge {
    font-size: 0.58rem;
    padding: 2px 8px;
    margin-bottom: 8px;
  }

  .pricing-card-divider {
    margin: 12px 0;
  }

  .pricing-card-features {
    gap: 6px;
    margin-bottom: 14px;
  }

  .pricing-card-features li {
    font-size: 0.68rem;
    gap: 5px;
    line-height: 1.3;
  }

  .pricing-card-features li svg {
    width: 12px;
    height: 12px;
  }

  .pricing-card-cta {
    padding: 10px 6px;
    font-size: 0.72rem;
    border-radius: 10px;
  }

  .pricing-card-guarantee {
    font-size: 0.6rem;
  }

  .pricing-faq {
    padding: 0 24px 80px;
  }

  .pricing-faq-header {
    margin-bottom: 30px;
  }

  .pricing-faq-toggle {
    padding: 18px 20px;
    gap: 12px;
  }

  .pricing-faq-answer p {
    padding: 0 20px 18px;
  }

  .pricing-guarantee {
    padding: 0 24px 60px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .footer-disclaimer {
    order: 1;
    font-size: 0.68rem;
  }

  /* profile responsive */
  .profile-main {
    padding: 80px 16px 40px;
  }

  .profile-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }

  .profile-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

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

  .profile-stat-value {
    font-size: 1.4rem;
  }

  .profile-achievements-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .profile-modules-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .profile-peptides-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .profile-friend-request-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-friends-list {
    grid-template-columns: 1fr;
  }

  .profile-friend-card {
    flex-wrap: wrap;
  }

  .profile-friend-card-actions {
    flex-direction: row;
    width: 100%;
  }
}

/* ============================================== */
/* responsive: 480px                               */
/* ============================================== */

@media (max-width: 480px) {
  .hero-video-runway {
    height: 8vh;
  }

  .hero-video-runway::before {
    top: -4vh;
    height: 4vh;
  }

  .video-container {
    height: 52vh;
  }

  .video-container::before {
    height: 6vh;
  }

  .content-overlay {
    margin-top: -47vh;
    padding-top: 10vh;
  }

  .hero {
    padding: 92px 16px 56px;
  }

  .hero-title-accent {
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .features {
    padding: 185px 16px 92px;
  }

  .features-glass,
  .glass-panel,
  .stats-glass {
    padding: 30px 18px;
    border-radius: 18px;
  }

  /* bento even smaller on narrow screens */
  .features-grid {
    gap: 8px;
  }

  .feature-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .feature-card-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .feature-card-icon svg {
    width: 15px;
    height: 15px;
  }

  .feature-card-title {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .feature-card-desc {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  /* adjust bento for very small screens: wider cards */
  .feature-card:nth-child(3) { grid-column: span 3; }
  .feature-card:nth-child(4) { grid-column: span 3; }
  .feature-card:nth-child(5) { grid-column: span 6; }
  .feature-card:nth-child(6) { grid-column: span 3; }
  .feature-card:nth-child(7) { grid-column: span 3; }

  /* show desc on cards that got wider at this breakpoint */
  .feature-card:nth-child(5) .feature-card-desc {
    display: block;
  }

  /* hide desc on paired narrow cards */
  .feature-card:nth-child(3) .feature-card-desc,
  .feature-card:nth-child(4) .feature-card-desc,
  .feature-card:nth-child(6) .feature-card-desc,
  .feature-card:nth-child(7) .feature-card-desc {
    display: none;
  }

  .stats,
  .how-it-works,
  .cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pricing-grid {
    gap: 6px;
    padding: 0 10px 48px;
  }

  .pricing-card {
    padding: 14px 8px;
    border-radius: 12px;
  }

  .pricing-card-name {
    font-size: 0.75rem;
  }

  .pricing-card-amount {
    font-size: 1.35rem;
  }

  .pricing-card-period {
    font-size: 0.58rem;
  }

  .pricing-card-savings {
    font-size: 0.56rem;
    margin-bottom: 8px;
  }

  .pricing-card-badge {
    font-size: 0.52rem;
    padding: 2px 6px;
    margin-bottom: 6px;
  }

  .pricing-card-divider {
    margin: 8px 0;
  }

  .pricing-card-features {
    gap: 5px;
    margin-bottom: 10px;
  }

  .pricing-card-features li {
    font-size: 0.6rem;
    gap: 4px;
    line-height: 1.25;
  }

  .pricing-card-features li svg {
    width: 10px;
    height: 10px;
  }

  .pricing-card-cta {
    padding: 8px 4px;
    font-size: 0.65rem;
    border-radius: 8px;
  }

  .pricing-card-guarantee {
    font-size: 0.55rem;
  }

  .pricing-faq {
    padding: 0 16px 64px;
  }

  .pricing-faq-toggle {
    font-size: 0.88rem;
    padding: 16px;
  }

  .pricing-faq-answer p {
    font-size: 0.84rem;
    padding: 0 16px 16px;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .profile-achievements-grid {
    grid-template-columns: 1fr;
  }

  .profile-activity-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .profile-activity-time {
    width: 100%;
  }
}

/* ============================================== */
/* light theme overrides for profile               */
/* ============================================== */

[data-theme="light"] .profile-achievement-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .profile-achievement-card--unlocked {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.06);
}

[data-theme="light"] .profile-activity-item,
[data-theme="light"] .profile-friend-request-item,
[data-theme="light"] .profile-search-result-item {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .profile-search-input,
[data-theme="light"] .profile-setting-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .profile-search-btn,
[data-theme="light"] .profile-setting-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .profile-friend-decline-btn,
[data-theme="light"] .profile-friend-remove-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .profile-tier-badge--free {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .profile-loading-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent);
}
