/* ==========================================================================
   Blaud Escritor - Design System & App Experience
   Autor: Blaud Veríssimo
   ========================================================================== */

:root {
  --bg-main: #070a12;
  --bg-surface: #0d1322;
  --bg-card: rgba(16, 24, 42, 0.75);
  --bg-card-hover: rgba(23, 34, 58, 0.9);
  --bg-glass: rgba(13, 19, 34, 0.65);
  --bg-glass-heavy: rgba(9, 13, 24, 0.88);

  --border-subtle: rgba(229, 184, 105, 0.12);
  --border-glow: rgba(229, 184, 105, 0.35);
  --border-active: #e5b869;

  --gold-primary: #e5b869;
  --gold-light: #f7d58b;
  --gold-dark: #b8862d;
  --gold-gradient: linear-gradient(135deg, #f7d58b 0%, #e5b869 50%, #b8862d 100%);
  --gold-glow: rgba(229, 184, 105, 0.28);

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #f7d58b;

  --font-title: 'Cinzel', serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 10px 30px rgba(229, 184, 105, 0.2);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Overrides if toggled */
body.light-theme {
  --bg-main: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-heavy: rgba(245, 247, 252, 0.95);
  --border-subtle: rgba(184, 134, 45, 0.18);
  --border-glow: rgba(184, 134, 45, 0.4);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-gold: #9a6b18;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  animation: pulseGlow 14s ease-in-out infinite alternate;
}

.glow-top-left {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #e5b869 0%, transparent 70%);
}

.glow-bottom-right {
  bottom: 50px;
  right: -100px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  animation-delay: -7s;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.14; }
  50% { transform: scale(1.15) translate(30px, 40px); opacity: 0.22; }
  100% { transform: scale(0.95) translate(-20px, -20px); opacity: 0.14; }
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0.5rem;
}

/* Aura/Backlight branca suave por trás da logo */
.logo-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  height: 82%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 75%);
  filter: blur(10px);
  border-radius: 50%;
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.logo-wrapper:hover::before {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 50%, transparent 75%);
  filter: blur(12px);
  width: 100%;
}

.logo-img {
  height: 78px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  /* Sombra branca de destaque (halo/glow) em camadas para contraste máximo */
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
          drop-shadow(0 0 8px rgba(255, 255, 255, 0.75))
          drop-shadow(0 0 16px rgba(255, 255, 255, 0.35))
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition-bounce), filter var(--transition-smooth);
}

.logo-wrapper:hover .logo-img {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 1))
          drop-shadow(0 0 12px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 24px rgba(255, 255, 255, 0.5))
          drop-shadow(0 6px 18px rgba(0, 0, 0, 0.8));
}

.footer-logo-img {
  height: 68px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
          drop-shadow(0 0 8px rgba(255, 255, 255, 0.65))
          drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-icon:hover {
  background: rgba(229, 184, 105, 0.12);
  border-color: var(--border-glow);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold-primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.btn-admin-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(229, 184, 105, 0.1);
  border: 1px solid var(--border-glow);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-admin-link:hover {
  background: var(--gold-gradient);
  color: #090e18;
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 184, 105, 0.1);
  border: 1px solid var(--border-glow);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(229, 184, 105, 0.15);
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.hero-title .text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #080d18;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(229, 184, 105, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(229, 184, 105, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* Trust Bar / Social Proof */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(229, 184, 105, 0.12);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  font-family: var(--font-heading);
}

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

/* Main Container */
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

/* Section Header */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-tag {
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin-top: 0.5rem;
  font-size: 0.98rem;
}

/* Toolbar: Filters & View Switch */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  background: rgba(229, 184, 105, 0.1);
  color: var(--gold-light);
}

.pill-btn.active {
  background: var(--gold-gradient);
  color: #080d18;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(229, 184, 105, 0.35);
}

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.6rem 1.15rem 0.6rem 2.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  outline: none;
  width: 240px;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  width: 280px;
  box-shadow: 0 0 16px rgba(229, 184, 105, 0.25);
}

.search-box i {
  position: absolute;
  left: 0.9rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

.view-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: rgba(229, 184, 105, 0.2);
  color: var(--gold-light);
}

/* ==========================================================================
   CARROSSEL 3D APP-STYLE COM EFEITO DE ROLAGEM
   (Requisito direto do usuário: "cada postzinho que passar na barra de
    rolagem quero que tenha um efeitozinho em cada um")
   ========================================================================== */

.carousel-container {
  position: relative;
  margin: 1.5rem 0 3rem;
  perspective: 1200px;
}

.carousel-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 0.75rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) rgba(255, 255, 255, 0.05);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(229, 184, 105, 0.5);
}

.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-glow);
  color: var(--gold-light);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: var(--gold-primary);
  color: #080d18;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-gold);
}

.carousel-nav-btn.prev { left: -20px; }
.carousel-nav-btn.next { right: -20px; }

/* BOOK CARD (APP-STYLE) */
.book-card {
  flex: 0 0 320px;
  scroll-snap-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  transform-style: preserve-3d;
}

/* Card Glow Effect on Hover / Scroll Focus */
.book-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(229, 184, 105, 0.12) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.book-card:hover {
  transform: translateY(-10px) rotateY(-2deg) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 184, 105, 0.18);
}

.book-card:hover::before {
  opacity: 1;
}

/* Book Cover Presentation */
.book-cover-container {
  position: relative;
  width: 100%;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  border-radius: var(--radius-md);
  perspective: 900px;
}

.book-cover-img {
  max-height: 290px;
  max-width: 90%;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.75));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  cursor: pointer;
}

.book-card:hover .book-cover-img {
  transform: scale(1.06) rotateY(6deg) translateY(-6px);
  filter: drop-shadow(0 22px 35px rgba(229, 184, 105, 0.25)) drop-shadow(0 15px 25px rgba(0,0,0,0.8));
}

/* Reflection beneath cover */
.cover-reflection {
  position: absolute;
  bottom: 6px;
  width: 70%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, transparent 75%);
  filter: blur(4px);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.book-card:hover .cover-reflection {
  width: 80%;
  transform: scaleY(1.3);
  opacity: 0.9;
}

/* Badges */
.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(9, 14, 25, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.card-badge.featured {
  background: var(--gold-gradient);
  color: #080d18;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(229, 184, 105, 0.4);
}

/* Card Info */
.book-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
  letter-spacing: 1.2px;
  margin-bottom: 0.35rem;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  min-height: 3.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-quote {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.6rem 0.85rem;
  border-left: 2px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  min-height: 4.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pricing and Actions */
.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-gold);
  line-height: 1;
}

.current-price small {
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-buy-card {
  background: var(--gold-gradient);
  color: #080d18;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(229, 184, 105, 0.3);
  transition: all var(--transition-fast);
}

.btn-buy-card:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(229, 184, 105, 0.45);
}

.btn-details-card {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-details-card:hover {
  background: rgba(229, 184, 105, 0.15);
  color: var(--gold-light);
  border-color: var(--border-glow);
}

/* Grid View - Modo Grade Oficial */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.25rem 1.85rem;
  margin: 2rem 0 3.5rem;
  width: 100%;
}

.grid-container .book-card {
  flex: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Combo Banner */
.combo-banner {
  background: linear-gradient(135deg, rgba(20, 30, 54, 0.9) 0%, rgba(12, 17, 30, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(229, 184, 105, 0.15);
}

.combo-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(229, 184, 105, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.combo-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.combo-tag {
  display: inline-block;
  background: var(--gold-gradient);
  color: #080d18;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.combo-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.combo-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.combo-pricing {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.combo-price-old {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.combo-price-new {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--gold-light);
}

.combo-preview-stack {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 260px;
  height: 200px;
  justify-content: center;
}

.stack-book {
  position: absolute;
  width: 110px;
  border-radius: 6px;
  box-shadow: -5px 10px 25px rgba(0,0,0,0.7);
  transition: transform 0.4s ease;
}

.stack-book:nth-child(1) { transform: rotate(-15deg) translateX(-40px); z-index: 1; }
.stack-book:nth-child(2) { transform: rotate(-5deg) translateX(-15px); z-index: 2; }
.stack-book:nth-child(3) { transform: rotate(5deg) translateX(15px); z-index: 3; }
.stack-book:nth-child(4) { transform: rotate(15deg) translateX(40px); z-index: 4; }

.combo-banner:hover .stack-book:nth-child(1) { transform: rotate(-22deg) translateX(-60px); }
.combo-banner:hover .stack-book:nth-child(2) { transform: rotate(-8deg) translateX(-25px); }
.combo-banner:hover .stack-book:nth-child(3) { transform: rotate(8deg) translateX(25px); }
.combo-banner:hover .stack-book:nth-child(4) { transform: rotate(22deg) translateX(60px); }

/* ==========================================================================
   SEÇÃO DO AUTOR - BLAUD VERÍSSIMO
   ========================================================================== */

.author-section {
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

.author-card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  max-width: 1180px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.author-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.author-seal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-seal-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(229, 184, 105, 0.35));
  border: 3px solid var(--gold-primary);
  padding: 6px;
  background: var(--bg-surface);
  transition: transform var(--transition-bounce);
}

.author-seal-img:hover {
  transform: rotate(5deg) scale(1.05);
}

.author-badge-label {
  margin-top: 1.25rem;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.author-sub-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.author-content-box h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.author-tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.author-bio {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.author-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  background: rgba(229, 184, 105, 0.08);
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.pillar-icon {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 0.65rem;
}

.pillar-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.pillar-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   CHECKOUT MODAL (MULTI-STEP FLOW)
   Passo 1: Cadastro (Nome, E-mail, WhatsApp)
   Passo 2: Pagamento Pix (QR Code + Copia e Cola)
   Passo 3: Liberação de Download Instantâneo
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.checkout-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(229, 184, 105, 0.2);
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .checkout-modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 1.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 5;
}

.modal-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Steps Indicator */
.checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.step-indicator.active {
  color: var(--gold-light);
}

.step-indicator.active .step-num {
  background: var(--gold-primary);
  color: #080d18;
  font-weight: 800;
}

.step-indicator.completed {
  color: var(--accent-green);
}

.step-indicator.completed .step-num {
  background: var(--accent-green);
  color: #fff;
}

.step-divider {
  flex-grow: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0.75rem;
}

/* Modal Body */
.modal-body {
  padding: 1.75rem;
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
  animation: fadeInPane 0.3s ease;
}

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

/* Selected Product Summary in Modal */
.modal-item-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.modal-item-img {
  width: 55px;
  height: 75px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.modal-item-details {
  flex-grow: 1;
}

.modal-item-details h4 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.modal-item-details span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-item-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  color: var(--gold-primary);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(229, 184, 105, 0.25);
  background: rgba(0, 0, 0, 0.5);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Step 2: Pix QR Code Box */
.pix-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.pix-timer-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 184, 105, 0.12);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.qr-code-frame {
  background: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.qr-code-frame canvas,
.qr-code-frame img {
  width: 190px !important;
  height: 190px !important;
  display: block;
}

.pix-copy-section {
  margin-top: 1rem;
}

.pix-code-display {
  background: rgba(0, 0, 0, 0.6);
  border: 1px dashed var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--gold-light);
  word-break: break-all;
  max-height: 65px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  text-align: left;
}

.btn-copy-pix {
  width: 100%;
  background: rgba(229, 184, 105, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.btn-copy-pix:hover {
  background: var(--gold-gradient);
  color: #080d18;
  transform: translateY(-2px);
}

.pix-instructions {
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pix-instructions ol {
  padding-left: 1.25rem;
}

/* Step 3: Success & Download */
.success-box {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon-animated {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  animation: bounceSuccess 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceSuccess {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.receipt-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1.75rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  color: var(--text-muted);
}

.receipt-row strong {
  color: var(--text-main);
}

.download-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn-download-ebook {
  background: var(--gold-gradient);
  color: #080d18;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(229, 184, 105, 0.4);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-download-ebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229, 184, 105, 0.6);
}

.btn-whatsapp-access {
  background: #25d366;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-whatsapp-access:hover {
  background: #1eb956;
  transform: translateY(-2px);
}

/* Bottom App Navigation (Mobile) */
.bottom-app-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem 0.75rem;
}

.bottom-nav-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
}

.bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.bottom-nav-item a i {
  font-size: 1.25rem;
}

.bottom-nav-item.active a,
.bottom-nav-item a:hover {
  color: var(--gold-light);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 340px;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Floating Social Proof Popup */
.social-proof-popup {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 80;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  max-width: 320px;
  animation: slideUpProof 0.5s ease;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.social-proof-popup.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

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

.proof-img {
  width: 38px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
}

.proof-text {
  font-size: 0.78rem;
  line-height: 1.35;
}

.proof-text strong {
  display: block;
  color: var(--gold-light);
}

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

/* Footer */
.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 420px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .author-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-seal-box {
    margin-bottom: 1rem;
  }
  .combo-banner {
    flex-direction: column;
    text-align: center;
  }
  .combo-content {
    max-width: 100%;
  }
  .combo-pricing {
    justify-content: center;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 58px;
    max-width: 200px;
  }
  .nav-links {
    display: none;
  }
  .bottom-app-bar {
    display: block;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .carousel-nav-btn {
    display: none;
  }
  .carousel-track {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .book-card {
    flex: 0 0 280px;
    padding: 1.25rem;
  }
  .book-cover-container {
    height: 270px;
  }
  .book-cover-img {
    max-height: 250px;
  }
  .social-proof-popup {
    bottom: 4.5rem;
    left: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
  }
  .toast-container {
    bottom: 5.5rem;
    left: 1rem;
    right: 1rem;
  }
}
