/* === BASE === */
:root {
  --bg: #06020f;
  --accent: #ff4e88;
  --accent-2: #6f79ff;
  --text: #f3f3ff;
  --muted: #a7a8c8;
  --panel: rgba(255, 255, 255, 0.05);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* === WRAPPER === */
.index-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
  min-height: calc(100vh - 8px);
  border-radius: 8px;
}

/* === HEADER === */
.index-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.header-emojis {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 4rem;
}

.brand-name {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff3e3e, #ff4e88);
  /* Reddi-ish brand color */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.tag-pill {
  background: #ffb8d0;
  color: #590024;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 78, 136, 0.4);
}

.hero-text {
  display: flex;
  flex-direction: column;
  color: var(--text);
  gap: 12px;
  margin-top: 8px;
}

.hero-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}

/* === ANIMATIONS === */
.fast-pulse {
  animation: pulse 0.5s ease-in-out infinite alternate;
}

.slow-pulse {
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/* === PRIVACY SECTION === */
.privacy-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #ffd700;
  /* Gold lock */
  font-size: 1rem;
  font-weight: 700;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.privacy-card {
  background: rgba(30, 30, 45, 0.6);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.privacy-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.privacy-card p {
  font-size: 0.65rem;
  color: var(--text);
  line-height: 1.3;
}

/* === ACCOUNT / MOEDA SECTION === */
.account-section {
  padding: 20px;
  text-align: center;
}

.account-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 12px;
}

.account-section p {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

/* === HOW IT WORKS === */
.how-it-works {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.how-it-works h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  text-align: left;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 12px;
}

.step-num {
  background: var(--accent-2);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.step-item p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #e0e0ff;
}

/* === CTA BOX === */
.cta-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  padding-bottom: 20px;
}

.cta-btn {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, #055bbd, #e91e63);
  /* Blue to Pink gradient */
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(233, 30, 99, 0.4);
  text-transform: uppercase;
  line-height: 1.4;
}

/* Botão secundário para instalar PWA */
.pwa-install-glow {
  position: relative;
  padding: 3px;
  border-radius: 15px;
  background: conic-gradient(from var(--glow-angle, 0deg), #ff6b9d, #fbbf24, #4ade80, #a855f7, #ff6b9d);
  animation: pwa-glow-spin 3s linear infinite, pwa-glow-pulse 2s ease-in-out infinite;
}

@keyframes pwa-glow-spin {
  to { --glow-angle: 360deg; }
}

@keyframes pwa-glow-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 107, 157, 0.4), 0 0 24px rgba(168, 85, 247, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 107, 157, 0.6), 0 0 40px rgba(168, 85, 247, 0.35); }
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.pwa-install-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.pwa-install-inner:active {
  opacity: 0.8;
}

.pwa-install-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.pwa-install-info {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.922);
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  padding: 0 4px;
}

/* Estado: app já instalada */
.pwa-install-glow.pwa-installed {
  opacity: 0.45;
  animation: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  pointer-events: none;
}

.pwa-installed .pwa-install-main span {
  color: var(--success);
  font-size: 0.8rem;
}

.cta-btn-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--accent);
  background: rgba(255, 78, 136, 0.1);
  color: var(--accent);
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.cta-btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 78, 136, 0.4);
  transform: translateY(-2px);
}

.cta-btn-secondary img {
  border-radius: 6px;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}



/* ═══════════════════════════════════════════ */
/* ONBOARDING SLIDES                           */
/* ═══════════════════════════════════════════ */

body.ob-active {
  overflow: hidden;
}

.ob-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.ob-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  padding: 20px 16px 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ob-slide.active {
  opacity: 1;
  transform: translateX(0) !important;
  pointer-events: auto;
  z-index: 1;
}

.ob-slide.exit-left {
  opacity: 0;
  transform: translateX(-60px);
  z-index: 0;
}

.ob-slide.exit-right {
  opacity: 0;
  transform: translateX(60px);
  z-index: 0;
}

.ob-slide.enter-right {
  transform: translateX(60px);
  transition: none;
}

.ob-slide.enter-left {
  transform: translateX(-60px);
  transition: none;
}

.ob-slide-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

/* ═══ Navigation bar ═══ */
.ob-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(6, 2, 15, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.ob-btn {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
}

.ob-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ob-btn:disabled {
  opacity: 0.2;
  pointer-events: none;
}

.ob-next {
  background: linear-gradient(135deg, #ff4e88, #9f36ff);
  border-color: transparent;
  color: #fff;
}

.ob-next:hover {
  box-shadow: 0 4px 16px rgba(255, 78, 136, 0.4);
  color: #fff;
  border-color: transparent;
}

.ob-next.ob-enter-btn {
  background: linear-gradient(135deg, #055bbd, #e91e63);
  animation: pulse 1s ease-in-out infinite alternate;
  font-size: 1rem;
  padding: 12px 24px;
}

/* ═══ Dots ═══ */
.ob-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ob-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  cursor: pointer;
}

.ob-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 5px;
}

/* ═══ Inline section styles (moved from inline <style> tags) ═══ */
.yxlove-section {
  background: linear-gradient(135deg, rgba(255, 78, 136, 0.08), rgba(255, 126, 179, 0.08));
  border: 1px solid rgba(255, 78, 136, 0.25);
  border-radius: 24px;
  padding: 28px 24px;
  margin: 0 auto;
  max-width: 600px;
}
.yxlove-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.yxlove-header span { font-size: 2rem; }
.yxlove-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff4e88;
  text-align: center;
  margin: 0;
}
.yxlove-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.yxlove-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.yxlove-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 78, 136, 0.3);
}
.yxlove-step {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.yxlove-step:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.step-icon { font-size: 1.5rem; flex-shrink: 0; }
.step-text strong {
  display: block;
  color: #ff7eb3;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.step-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}
.step-text em { color: #ffd700; font-style: normal; }
.yxlove-security ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.6;
}
.yxlove-security li { margin-bottom: 6px; }
.yxlove-security li:last-child { margin-bottom: 0; }

/* nVoka */
.nvoka-section {
  background: linear-gradient(135deg, rgba(77, 255, 130, 0.08), rgba(0, 200, 120, 0.08));
  border: 1px solid rgba(77, 255, 130, 0.25);
  border-radius: 24px;
  padding: 28px 24px;
  margin: 0 auto;
  max-width: 600px;
}
.nvoka-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.nvoka-header span { font-size: 2rem; }
.nvoka-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4dff82;
  text-align: center;
  margin: 0;
}
.nvoka-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 20px;
}
.nvoka-activation { margin-bottom: 20px; }
.nvoka-activation h3,
.nvoka-features h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(77, 255, 130, 0.2);
}
.nvoka-trigger {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
}
.nvoka-trigger:last-of-type { border-bottom: none; }
.nvoka-trigger > span {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.nvoka-trigger strong {
  display: block;
  color: #4dff82;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.nvoka-trigger p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}
.nvoka-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nvoka-feature {
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.nvoka-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.nvoka-feature strong {
  display: block;
  color: #4dff82;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.nvoka-feature p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

/* Rating */
.app-rating-section {
  background: linear-gradient(135deg, rgba(255, 78, 136, 0.1), rgba(255, 126, 179, 0.1));
  border: 1px solid rgba(255, 78, 136, 0.3);
  border-radius: 20px;
  padding: 24px;
  margin: 0 auto;
  max-width: 300px;
  text-align: center;
}
.rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rating-stars { font-size: 1.8rem; letter-spacing: 2px; }
.half-star { opacity: 0.5; font-size: 1.4rem; }
.rating-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff4e88;
  line-height: 1;
}
.rating-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
}
.rating-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  .yxlove-section,
  .nvoka-section {
    padding: 20px 16px;
  }
  .yxlove-header h2 { font-size: 1.2rem; }
  .nvoka-header h2 { font-size: 1.1rem; }
  .step-icon { font-size: 1.3rem; }
  .ob-btn { min-width: 70px; padding: 8px 14px; font-size: 0.82rem; }
}