/* ============================================
   MOUNJARO NATURAL — Design System
   Purple/Feminine Premium PWA
   ============================================ */

:root {
  /* Core palette */
  --bg-deep: #0D0A14;
  --bg-card: rgba(26, 18, 40, 0.75);
  --bg-card-solid: #1A1228;
  --bg-elevated: rgba(40, 28, 60, 0.6);

  /* Purple spectrum */
  --purple-50: #FAF5FF;
  --purple-100: #F3E8FF;
  --purple-200: #E9D5FF;
  --purple-300: #D8B4FE;
  --purple-400: #C084FC;
  --purple-500: #A855F7;
  --purple-600: #9333EA;
  --purple-700: #7E22CE;
  --purple-800: #6B21A8;
  --purple-900: #581C87;

  /* Rose gold accents */
  --rose-gold: #D4A574;
  --rose-gold-light: #E8C9A0;
  --rose-pink: #F0ABFC;

  /* Text */
  --text-primary: #F8F0FF;
  --text-secondary: rgba(248, 240, 255, 0.65);
  --text-muted: rgba(248, 240, 255, 0.4);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #A855F7, #C084FC);
  --grad-accent: linear-gradient(135deg, #C084FC, #D4A574);
  --grad-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(212, 165, 116, 0.2));
  --grad-card: linear-gradient(145deg, rgba(168, 85, 247, 0.08), rgba(212, 165, 116, 0.04));

  /* Glass */
  --glass-bg: rgba(26, 18, 40, 0.65);
  --glass-border: rgba(168, 85, 247, 0.15);
  --glass-blur: 20px;

  /* Spacing */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, button, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============ SKY BACKGROUND ============ */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(126, 34, 206, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 60%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
    var(--bg-deep);
  animation: skyPulse 12s ease-in-out infinite alternate;
}

@keyframes skyPulse {
  0% { opacity: 1; }
  100% { opacity: 0.85; }
}

.sky-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.shimmer-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--purple-400);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0); }
}

/* ============ APP SHELL ============ */
#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
  scrollbar-width: none;
}
.screen-scroll::-webkit-scrollbar { display: none; }

/* ============ LOGIN SCREEN ============ */
.screen--login {
  justify-content: center;
  align-items: center;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(212, 165, 116, 0.1) 0%, transparent 40%);
}

.login-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  padding: 0 24px;
  text-align: center;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.login-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.login-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.05em;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.login-subtitle {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.login-form {
  text-align: left;
}

.login-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

.login-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--text-muted);
  justify-content: center;
}

.login-avatars {
  display: flex;
  margin-right: 2px;
}

.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  border: 2px solid var(--bg-deep);
  margin-left: -6px;
}

.mini-avatar:first-child {
  margin-left: 0;
}

/* ============ FORM ELEMENTS ============ */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}

.form-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-textarea::placeholder {
  color: var(--text-muted);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(var(--tint), 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:active::after {
  opacity: 1;
}

.btn--primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--grad-accent);
  color: #0D0A14;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.25);
}

.btn--outline {
  border: 1px solid var(--glass-border);
  color: var(--purple-300);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  border-color: var(--purple-400);
  background: rgba(168, 85, 247, 0.08);
}

.btn--ghost {
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(var(--tint), 0.05);
}

.btn--danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn--danger:hover {
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.45);
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ============ PIN SCREEN ============ */
.pin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.pin-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 20px;
}

.pin-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 32px;
}

.pin-dots {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--purple-400);
  transition: all 0.25s var(--ease-spring);
}

.pin-dot.filled {
  background: var(--purple-400);
  border-color: var(--purple-400);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  transform: scale(1.15);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
  justify-content: center;
}

.pin-key {
  width: 72px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.pin-key:active {
  background: rgba(168, 85, 247, 0.2);
  transform: scale(0.95);
}

.pin-key--empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.pin-key--del {
  color: var(--purple-300);
}

/* ============ HOME SCREEN ============ */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 16px) 20px 12px;
}

.home-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hello {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2px;
}

.home-hello span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--purple-300);
}

.home-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 0;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
  scrollbar-width: none;
}
.home-scroll::-webkit-scrollbar { display: none; }

/* Streak Card */
.streak-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  margin-bottom: 16px;
}

.streak-flame svg {
  display: block;
}

.streak-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.streak-count {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.streak-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.streak-badge {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(168, 85, 247, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-300);
}

/* ============ HERO CARD ============ */
.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 14px;
  background: var(--bg-card);
}

.hero-card__img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-card__img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-card-solid), transparent);
}

.hero-card__content {
  padding: 20px;
  margin-top: -24px;
  position: relative;
  z-index: 1;
}

.hero-card__tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--rose-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ============ SORTEIO BANNER (Home) ============ */
.sorteio-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(212, 165, 116, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s;
}

.sorteio-banner:active {
  transform: scale(0.98);
}

.sorteio-banner:hover {
  border-color: var(--rose-gold);
}

.sorteio-banner__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(168, 85, 247, 0.15));
  border-radius: 50%;
  color: var(--rose-gold);
  flex-shrink: 0;
}

.sorteio-banner__text {
  flex: 1;
  min-width: 0;
}

.sorteio-banner__text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
}

.sorteio-banner__text span {
  font-size: 0.72rem;
  color: var(--rose-gold);
}

.sorteio-banner > svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============ GUARANTEE MINI (Home) ============ */
.guarantee-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.guarantee-mini:hover {
  border-color: var(--purple-400);
}

.guarantee-mini svg {
  color: var(--purple-400);
  flex-shrink: 0;
}

.guarantee-mini div {
  flex: 1;
}

.guarantee-mini strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.guarantee-mini span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============ TESTIMONIAL CARD ============ */
.testimonial-card {
  padding: 20px;
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-top: 20px;
  margin-bottom: 16px;
}

.testimonial-card__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 14px;
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--purple-500);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-card__author span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Action Card */
.action-card {
  position: relative;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  margin-bottom: 14px;
}

.action-card__glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
  pointer-events: none;
}

.action-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple-400);
  margin-bottom: 10px;
}

.action-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.action-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.action-card--secondary {
  background: var(--grad-card);
}

/* Progress Mini */
.progress-mini {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.3s;
}

.progress-mini:hover {
  border-color: var(--purple-500);
}

.progress-mini__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.progress-mini__header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.progress-mini__header svg {
  color: var(--text-muted);
}

.progress-mini__stats {
  display: flex;
  gap: 8px;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: rgba(168, 85, 247, 0.06);
  border-radius: var(--radius-sm);
}

.stat__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-300);
}

.stat__label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Section Titles */
.section-title {
  margin-bottom: 14px;
}

.section-title__overline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rose-gold);
}

.section-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ============ UPSELL CARDS (horizontal scroll) ============ */
.upsell-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  margin-right: -20px;
  padding-right: 20px;
}
.upsell-scroll::-webkit-scrollbar { display: none; }

.upsell-card {
  flex: 0 0 155px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
  overflow: hidden;
}

.upsell-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple-500);
}

.upsell-card__img {
  width: 100%;
  height: 90px;
  background-size: cover;
  background-position: center;
}

.upsell-card__lock {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  color: var(--text-muted);
}

.upsell-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  padding: 12px 12px 0;
}

.upsell-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0 12px;
}

.upsell-card__price {
  display: block;
  padding: 8px 12px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--purple-300);
}

.upsell-card__price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ============ SCREEN HEADER ============ */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(var(--base), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.screen-header__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--purple-300);
  transition: background 0.2s;
}

.back-btn:hover {
  background: rgba(168, 85, 247, 0.1);
}

/* ============ RECEITA SCREEN ============ */
.receita-hero {
  position: relative;
  padding: 40px 20px 30px;
  margin-bottom: 10px;
  overflow: hidden;
}

.receita-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(168, 85, 247, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 165, 116, 0.12), transparent 50%);
}

.receita-hero__content {
  position: relative;
  text-align: center;
}

.receita-hero__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--rose-gold);
}

.receita-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.15;
}

.receita-hero__sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.receita-steps {
  padding: 0 20px;
}

.receita-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--purple-200);
}

.receita-intro-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ============ VIDEO SECTION ============ */
.video-section {
  padding: 0 20px;
  margin-bottom: 20px;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(var(--surface), 0.95), rgba(var(--base), 0.98));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.3s;
  overflow: hidden;
  position: relative;
}

.video-placeholder:hover {
  border-color: var(--purple-400);
}

.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.video-placeholder__play {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(var(--tint), 0.2);
  transition: transform 0.3s, background 0.3s;
}

.video-placeholder:hover .video-placeholder__play {
  transform: scale(1.08);
  background: rgba(168, 85, 247, 0.5);
}

.video-placeholder__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Ingredient Cards */
.ingredient-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  margin-bottom: 10px;
}

.ingredient-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ingredient-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.ingredient-qty {
  font-size: 0.8rem;
  color: var(--purple-300);
  font-weight: 500;
  margin-bottom: 4px;
}

.ingredient-tip {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Step Cards */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(168, 85, 247, 0.04);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.step-num {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Recipe Variations */
.receita-variation {
  background: rgba(168, 85, 247, 0.06);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.variation-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-300);
  margin-bottom: 6px;
}
.variation-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.variation-recipe {
  margin-top: 12px;
  padding: 14px;
  background: rgba(var(--base), 0.5);
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.15);
}
.variation-ingredient {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 5px 0;
  line-height: 1.4;
}
.variation-ingredient span {
  color: var(--purple-400);
  font-weight: 700;
  margin-right: 4px;
}
.variation-tip {
  font-size: 0.78rem;
  color: var(--purple-300);
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.4;
  padding-top: 8px;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
}

/* Science Card */
.science-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.08), rgba(168, 85, 247, 0.04));
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--radius-md);
  margin-top: 20px;
  margin-bottom: 10px;
}

.science-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 132, 252, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.science-card div {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.science-card strong {
  color: var(--purple-300);
}

/* Warning Card */
.warning-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(240, 171, 252, 0.06);
  border: 1px solid rgba(240, 171, 252, 0.15);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.warning-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.warning-card strong {
  color: var(--rose-pink);
}

/* ============ BIBLIOTECA SCREEN ============ */
.biblioteca-section {
  padding: 16px 20px 0;
}

.biblioteca-program {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
  background: var(--bg-card);
}

.biblioteca-program__img {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.biblioteca-program__img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card-solid), transparent);
}

.biblioteca-program__info {
  padding: 16px 18px;
  margin-top: -16px;
  position: relative;
}

.biblioteca-program__tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--rose-gold);
  margin-bottom: 6px;
  display: block;
}

.biblioteca-program__info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.biblioteca-program__status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.biblioteca-program__status--active {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}

/* Chapter List */
.chapter-list {
  padding: 0 20px;
}

.chapter-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(10px);
}

.chapter-card:hover {
  border-color: var(--purple-500);
  transform: translateX(4px);
}

.chapter-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-400);
  opacity: 0.6;
  flex-shrink: 0;
  width: 32px;
}

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

.chapter-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 2px;
}

.chapter-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.chapter-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Locked Section */
.locked-section {
  padding: 20px;
  margin-top: 10px;
}

.locked-section__header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.locked-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(168, 85, 247, 0.04);
  border: 1px dashed rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, border-color 0.3s;
}

.locked-card:hover {
  opacity: 1;
  border-color: var(--purple-400);
}

.locked-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-card__info {
  flex: 1;
}

.locked-card__info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.locked-card__info p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.locked-card__price {
  font-weight: 700;
  color: var(--purple-300);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.locked-card__price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ============ PROGRESSO SCREEN ============ */
.weight-input-card {
  margin: 16px 20px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.weight-input-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.weight-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weight-input {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.weight-input:focus {
  border-color: var(--purple-500);
}

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

/* Chart Card */
.chart-card {
  margin: 0 20px 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.chart-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.chart-card canvas {
  width: 100%;
  height: auto;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--start { background: var(--text-muted); }
.dot--current { background: var(--purple-400); }

/* Calendar Grid */
.marks-card {
  margin: 0 20px 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.marks-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.cal-day--active {
  background: var(--grad-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.cal-day--today {
  border: 1px solid var(--purple-500);
  color: var(--purple-300);
}

/* Milestones */
.milestones-card {
  margin: 0 20px 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.milestones-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.milestone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(var(--tint), 0.04);
}

.milestone:last-child {
  border-bottom: none;
}

.milestone__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.08);
  border-radius: 50%;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
}

.milestone.achieved .milestone__icon {
  background: rgba(168, 85, 247, 0.2);
  color: var(--purple-400);
}

.milestone__info {
  flex: 1;
}

.milestone__info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.milestone__info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Badges */
.badges-card {
  margin: 0 20px 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.badges-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

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

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  opacity: 0.35;
  filter: grayscale(1);
  transition: all 0.4s var(--ease-out);
}

.badge.earned {
  opacity: 1;
  filter: none;
  border-color: var(--purple-500);
  background: rgba(168, 85, 247, 0.1);
}

.badge__icon {
  font-size: 1.5rem;
}

.badge__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============ REEMBOLSO SCREEN ============ */
.reembolso-header {
  text-align: center;
  padding: 32px 20px 24px;
}

.reembolso-header svg {
  color: var(--purple-400);
  margin-bottom: 12px;
}

.reembolso-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.reembolso-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Guarantee Card */
.guarantee-card {
  margin: 0 20px 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(212, 165, 116, 0.06));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.guarantee-card:hover {
  border-color: var(--purple-400);
}

.guarantee-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--grad-primary);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 12px;
}

.guarantee-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.guarantee-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.guarantee-card__link {
  font-size: 0.82rem;
  color: var(--purple-400);
  font-weight: 500;
}

/* Refund Form */
.refund-form {
  margin: 0 20px 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.refund-form > h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Refund Steps Indicator */
.refund-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.refund-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.refund-step__num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s;
}

.refund-step.active .refund-step__num {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.refund-step.completed .refund-step__num {
  background: rgba(52, 211, 153, 0.2);
  color: #34D399;
}

.refund-step span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.refund-step.active span {
  color: var(--purple-300);
}

.refund-step__line {
  width: 40px;
  height: 2px;
  background: var(--bg-elevated);
  margin: 0 8px;
  margin-bottom: 20px;
}

/* Refund Step Content */
.refund-step-content {
  display: none;
}

.refund-step-content.active {
  display: block;
}

.refund-step-content > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Refund Options */
.refund-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.refund-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.refund-option:hover {
  border-color: var(--purple-400);
}

.refund-option input[type="radio"] {
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--purple-500);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.refund-option input[type="radio"]:checked {
  border-color: var(--purple-400);
  background: var(--purple-500);
  box-shadow: inset 0 0 0 3px var(--bg-elevated);
}

.refund-option input[type="radio"]:checked ~ span {
  color: var(--text-primary);
}

.refund-option span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.refund-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 16px;
}

.refund-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.refund-btn-row .btn {
  flex: 1;
}

/* Refund Confirm */
.refund-confirm {
  text-align: center;
  margin-bottom: 10px;
}

.refund-confirm svg {
  margin-bottom: 12px;
}

.refund-confirm h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.refund-confirm p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Refund Warning */
.refund-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.refund-warning svg {
  flex-shrink: 0;
  color: #EF4444;
  margin-top: 1px;
}

.refund-warning span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Refund Success */
.refund-success {
  text-align: center;
  padding: 20px 0;
}

.refund-success svg {
  margin-bottom: 14px;
}

.refund-success h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #34D399;
  margin-bottom: 8px;
}

.refund-success p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Contact Card */
.contact-card {
  margin: 0 20px 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.contact-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card > p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--purple-300);
  transition: border-color 0.3s;
}

.contact-method:hover {
  border-color: var(--purple-400);
}

.contact-method svg {
  flex-shrink: 0;
}

/* ============ CONFIG SCREEN ============ */
.perfil-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
}

.perfil-avatar__circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--purple-500);
  margin-bottom: 12px;
}

.perfil-avatar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.perfil-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.perfil-section {
  padding: 0 20px;
  margin-bottom: 24px;
}

.perfil-section h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.perfil-field {
  margin-bottom: 14px;
}

.perfil-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.perfil-field .form-input {
  margin-bottom: 0;
}

/* Product Status */
.product-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(168, 85, 247, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.product-status--locked {
  opacity: 0.5;
}

.product-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.product-status__dot--active {
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.product-status__badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}

.product-status__badge--locked {
  background: rgba(168, 85, 247, 0.1);
  color: var(--text-muted);
}

/* Settings */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--tint), 0.04);
  font-size: 0.9rem;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  border-radius: 24px;
  transition: background 0.3s;
}

.toggle__slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s var(--ease-spring);
}

.toggle input:checked + .toggle__slider {
  background: var(--purple-600);
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(20px);
  background: white;
}

/* ============ SORTEIO SCREEN ============ */
.sorteio-hero {
  position: relative;
  overflow: hidden;
}

.sorteio-hero__img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.sorteio-hero__img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, var(--bg-deep), transparent);
}

.sorteio-hero__content {
  position: relative;
  margin-top: -60px;
  padding: 0 20px 20px;
  z-index: 1;
}

.sorteio-hero__tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--rose-gold);
  margin-bottom: 8px;
}

.sorteio-hero__content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 6px;
}

.sorteio-hero__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sorteio-details {
  padding: 0 20px;
}

.sorteio-prize {
  margin-bottom: 20px;
}

.sorteio-prize h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.sorteio-prize ul {
  list-style: none;
}

.sorteio-prize li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(var(--tint), 0.03);
}

.sorteio-prize li:last-child {
  border-bottom: none;
}

.sorteio-prize li svg {
  flex-shrink: 0;
}

/* Sorteio CTA */
.sorteio-cta {
  padding: 20px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.sorteio-cta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Sorteio Numbers */
.sorteio-numbers {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.sorteio-numbers h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.sorteio-numbers__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.sorteio-number {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-gold);
}

.sorteio-draw-date {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(168, 85, 247, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sorteio-draw-date strong {
  color: var(--purple-300);
}

.sorteio-draw-date svg {
  color: var(--purple-400);
  flex-shrink: 0;
}

/* Sorteio Warning */
.sorteio-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(240, 171, 252, 0.06);
  border: 1px solid rgba(240, 171, 252, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.sorteio-warning svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.sorteio-warning p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ============ GARANTIA SCREEN ============ */
.garantia-content {
  padding: 32px 20px;
  text-align: center;
}

.garantia-shield {
  margin-bottom: 20px;
}

.garantia-shield svg {
  display: inline-block;
}

.garantia-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.garantia-quote {
  padding: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(212, 165, 116, 0.05));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.garantia-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.garantia-quote span {
  font-size: 0.82rem;
  color: var(--rose-gold);
  font-weight: 500;
}

.garantia-text {
  text-align: left;
  margin-bottom: 24px;
}

.garantia-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.garantia-text strong {
  color: var(--text-primary);
}

.garantia-steps {
  text-align: left;
}

.garantia-steps h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.garantia-step {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.garantia-step__num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.garantia-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.garantia-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============ CHAPTER DETAIL ============ */
.chapter-content {
  padding: 20px;
  line-height: 1.7;
}

.chapter-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--purple-200);
}

.chapter-content p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.chapter-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.chapter-content em {
  color: var(--purple-300);
  font-style: normal;
}

.chapter-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.chapter-content ul li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chapter-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
}

.chapter-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--purple-300);
}

.chapter-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.chapter-content ol li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chapter-highlight {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(212,165,116,0.08));
  border-left: 3px solid var(--purple-500);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 18px 0;
}

.chapter-highlight h3 {
  margin: 0 0 8px;
  color: var(--purple-200);
}

.chapter-highlight p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.chapter-cta {
  background: rgba(168,85,247,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-style: italic;
  color: var(--purple-300) !important;
  font-size: 0.88rem !important;
  margin-top: 20px;
}

/* ============ MODAL / UPSELL SHEET ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

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

.modal__sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  background: var(--bg-card-solid);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  padding-bottom: calc(var(--safe-bottom) + 20px);
}

.modal.open .modal__sheet {
  transform: translateY(0);
}

.modal__handle {
  width: 36px;
  height: 4px;
  background: rgba(var(--tint), 0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  cursor: pointer;
}

.modal__content {
  padding: 24px 20px;
}

.modal__content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__content .modal-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rose-gold);
  margin-bottom: 8px;
}

.modal__content .modal-upsell-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.modal__content .modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal__content .modal-features {
  list-style: none;
  margin-bottom: 24px;
}

.modal__content .modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.modal__content .modal-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--purple-400);
}

.modal__content .modal-price {
  text-align: center;
  margin-bottom: 16px;
}

.modal__content .modal-price .price-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal__content .modal-price .price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(var(--safe-bottom) + 8px);
  background: rgba(var(--base), 0.92);
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.bottom-nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
  min-width: 0;
}

.nav-item span {
  font-size: 0.6rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-item.active {
  color: var(--purple-400);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--purple-400);
  border-radius: 1px;
}

/* ============ 6-TAB NAV ============ */
.bottom-nav--6 .nav-item {
  padding: 6px 4px;
}
.bottom-nav--6 .nav-item span {
  font-size: 0.55rem;
}
.bottom-nav--6 .nav-item svg {
  width: 20px;
  height: 20px;
}

/* ============ COMUNIDADE ============ */
.community-stats-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem 0.5rem;
  margin: 0 1rem;
}
.community-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.community-stat__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-400);
}
.community-stat__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.community-stat__divider {
  width: 1px;
  height: 32px;
  background: var(--glass-border);
}

/* Ranking */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 1rem;
}
.ranking-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: transform 0.2s;
}
.ranking-card--gold {
  background: linear-gradient(135deg, rgba(255,215,0,0.08), var(--bg-card));
  border-color: rgba(255,215,0,0.25);
}
.ranking-card--silver {
  background: linear-gradient(135deg, rgba(192,192,192,0.08), var(--bg-card));
  border-color: rgba(192,192,192,0.2);
}
.ranking-card--bronze {
  background: linear-gradient(135deg, rgba(205,127,50,0.08), var(--bg-card));
  border-color: rgba(205,127,50,0.2);
}
.ranking-card--you {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), var(--bg-card));
  border-color: var(--purple-500);
}
.ranking-pos {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 28px;
  text-align: center;
}
.ranking-pos span {
  font-size: 0.7rem;
}
.ranking-card--gold .ranking-pos { color: #FFD700; }
.ranking-card--silver .ranking-pos { color: #C0C0C0; }
.ranking-card--bronze .ranking-pos { color: #CD7F32; }

.ranking-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0D0A14;
  flex-shrink: 0;
}
.ranking-avatar--you {
  background: var(--purple-500) !important;
  color: white;
}
.ranking-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ranking-info strong {
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.ranking-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}
.ranking-kg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #34D399;
}
.ranking-period {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ranking-you {
  margin: 12px 1rem 0;
}
.ranking-you__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-400);
  font-weight: 600;
  margin-bottom: 6px;
}

/* Plate Feed */
.plate-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 1rem;
}
.plate-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.plate-card__img {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
}
.plate-card__calories {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34D399;
  border: 1px solid rgba(52,211,153,0.3);
}
.plate-card__content {
  padding: 12px 14px 14px;
}
.plate-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.plate-card__author div {
  display: flex;
  flex-direction: column;
}
.plate-card__author strong {
  font-size: 0.8rem;
  color: var(--text-primary);
}
.plate-card__author span {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.plate-card__desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.plate-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.plate-tag {
  background: rgba(168,85,247,0.12);
  color: var(--purple-300);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 500;
}
.plate-card__reactions {
  display: flex;
  gap: 8px;
}
.plate-reaction {
  background: rgba(var(--tint), 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.plate-reaction:hover,
.plate-reaction--active {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.3);
  color: var(--text-primary);
}

/* Community Testimonials */
.community-testimonials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 1rem;
  padding-bottom: 2rem;
}
.community-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.community-testimonial__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.community-testimonial__header div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.community-testimonial__header strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}
.community-testimonial__header span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.community-testimonial__badge {
  background: linear-gradient(135deg, #34D399, #059669);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.community-testimonial p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}
.community-testimonial__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============ PRODUCT SHOWCASE ============ */
.product-showcase {
  display: flex;
  gap: 12px;
  padding: 0 var(--pad);
  margin-bottom: 1rem;
}
.product-showcase__item {
  flex: 1;
  background: var(--glass);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 12px;
  text-align: center;
}
.product-showcase__img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
}
.product-showcase__label {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============ CHAPTER AUDIO PLAYER ============ */
.chapter-audio-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.chapter-audio-toggle button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}
.chapter-audio-toggle button.active {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: white;
  border-color: var(--purple-500);
  box-shadow: 0 4px 16px rgba(168,85,247,0.3);
}
.chapter-audio-toggle button svg {
  width: 16px;
  height: 16px;
}
.chapter-audio-player {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  display: none;
}
.chapter-audio-player.visible {
  display: block;
}
.chapter-audio-player__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chapter-audio-player__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(168,85,247,0.3);
  transition: transform 0.2s;
}
.chapter-audio-player__play:active {
  transform: scale(0.92);
}
.chapter-audio-player__progress {
  flex: 1;
}
.chapter-audio-player__bar {
  width: 100%;
  height: 4px;
  background: rgba(var(--tint), 0.1);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.chapter-audio-player__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-500), var(--rose-pink));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.chapter-audio-player__time {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.chapter-audio-player__speed {
  background: rgba(168,85,247,0.2);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--purple-300);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chapter-subtitles {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  min-height: 80px;
  margin-bottom: 16px;
  display: none;
}
.chapter-subtitles.visible {
  display: block;
}
.chapter-subtitles__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.chapter-subtitles__text .sub-active {
  color: var(--purple-300);
  font-weight: 600;
  transition: color 0.3s;
}
.chapter-subtitles__text .sub-past {
  color: var(--text-muted);
}
.chapter-subtitles__text .sub-future {
  color: rgba(var(--tint), 0.3);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s var(--ease-out) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--purple-700);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: 90%;
  text-align: center;
}

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

/* ============ RESPONSIVE ============ */
@media (min-width: 431px) {
  #app {
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
  }
}
