/* ================================================================
   Livre Para Sorrir — style.css
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ── */
:root {
  --green: #1A6B3A;
  --green-dark: #0D4A28;
  --green-light: #E8F5EE;
  --orange: #F5A623;
  --orange-dark: #D4891A;
  --white: #ffffff;
  --gray-bg: #F5F5F5;
  --gray-text: #555;
  --shadow: 0 8px 30px rgba(0, 0, 0, .12);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--green-dark);
  padding: 10px 24px;
  height: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-logo {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
}

.navbar-links a {
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  margin-left: 20px;
  transition: color .2s;
}

.navbar-links a:hover {
  color: var(--orange);
}

/* ── Hero ── */
.hero {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #2d8a52 100%);
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
}

.hero .container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  color: var(--white);
}

.hero-text .badge-pill {
  display: inline-block;
  background: var(--orange);
  border: none;
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(245, 166, 35, .4);
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-text h1 span {
  color: var(--orange);
}

.hero-text p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .25s;
  text-decoration: none;
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(245, 166, 35, .4);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 166, 35, .5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .7);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .15);
  color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: .82rem;
}

/* ── 3D Book (fallback) ── */
.book-wrapper {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.book-scene {
  perspective: 1200px;
  cursor: pointer;
}

.book {
  width: 220px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-25deg) rotateX(4deg);
  transition: transform .5s ease;
  animation: bookFloat 4s ease-in-out infinite;
}

.book:hover {
  transform: rotateY(-12deg) rotateX(2deg);
}

@keyframes bookFloat {

  0%,
  100% {
    transform: rotateY(-25deg) rotateX(4deg) translateY(0);
  }

  50% {
    transform: rotateY(-25deg) rotateX(4deg) translateY(-12px);
  }
}

.book-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.book-front {
  background: linear-gradient(160deg, #0D4A28 0%, #1A6B3A 50%, #2d8a52 100%);
  border-radius: 2px 8px 8px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  color: var(--white);
  box-shadow: 6px 6px 20px rgba(0, 0, 0, .4);
  transform: translateZ(15px);
}

.book-front .leaf-icon {
  font-size: 3rem;
  opacity: .9;
}

.book-front .book-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.book-front .book-sub {
  font-size: .72rem;
  opacity: .8;
  margin-top: 4px;
}

.book-front .book-author {
  font-size: .7rem;
  opacity: .7;
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 8px;
}

.book-spine {
  position: absolute;
  left: -30px;
  top: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(180deg, #0A3820, #0D4A28);
  transform: rotateY(-90deg) translateZ(15px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-spine span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: rgba(255, 255, 255, .7);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.book-pages {
  position: absolute;
  right: -6px;
  top: 3px;
  width: 12px;
  height: calc(100% - 6px);
  background: repeating-linear-gradient(to right, #f0ede8, #e8e4df 2px, #f0ede8 2px, #f0ede8 4px);
  transform: rotateY(90deg) translateZ(6px);
}

/* ── PDF Flipbook (hero) ── */
.pdf-flipbook-container {
  position: relative;
  width: 300px;
  cursor: pointer;
  animation: bookFloat 5s ease-in-out infinite;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 12px 12px 40px rgba(0, 0, 0, .5), -4px 0 0 rgba(0, 0, 0, .15);
  transition: transform .3s;
}

.pdf-flipbook-container:hover {
  transform: scale(1.02) translateY(-4px);
}

.pdf-flipbook-inner {
  position: relative;
  overflow: hidden;
  border-radius: 4px 12px 12px 4px;
  background: #fff;
  border-left: 6px solid #0A3820;
}

.pdf-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  transition: opacity .35s ease;
}

.pdf-canvas.page-turning-left {
  animation: flipLeft .4s ease;
}

.pdf-canvas.page-turning-right {
  animation: flipRight .4s ease;
}

@keyframes flipLeft {
  0% {
    transform: perspective(800px) rotateY(0deg);
    opacity: 1;
  }

  50% {
    transform: perspective(800px) rotateY(-30deg);
    opacity: .4;
  }

  100% {
    transform: perspective(800px) rotateY(0deg);
    opacity: 1;
  }
}

@keyframes flipRight {
  0% {
    transform: perspective(800px) rotateY(0deg);
    opacity: 1;
  }

  50% {
    transform: perspective(800px) rotateY(30deg);
    opacity: .4;
  }

  100% {
    transform: perspective(800px) rotateY(0deg);
    opacity: 1;
  }
}

.pdf-page-turn {
  display: none;
}

.pdf-spine {
  position: absolute;
  left: -14px;
  top: 0;
  width: 14px;
  height: 100%;
  background: linear-gradient(180deg, #072a17, #0A3820, #0D4A28);
  border-radius: 4px 0 0 4px;
}

.pdf-pages-side {
  position: absolute;
  right: -8px;
  top: 2px;
  width: 10px;
  height: calc(100% - 4px);
  background: repeating-linear-gradient(to right, #f0ede8, #e8e4df 2px, #f0ede8 2px, #f0ede8 4px);
  border-radius: 0 4px 4px 0;
}

.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.pdf-nav-btn {
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .4);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-nav-btn:hover {
  background: rgba(255, 255, 255, .35);
}

.pdf-page-info {
  color: rgba(255, 255, 255, .7);
  font-size: .78rem;
  min-width: 70px;
  text-align: center;
}

.book-hint {
  display: none;
}

/* ── Navbar mini logo ── */
.navbar-logo-sm {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* ── Hero: lado direito ── */
.hero-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-logo-card {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  animation: bookFloat 5s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.hero-logo-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

.hero-logo-main {
  width: 220px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .3));
}

.hero-logo-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  margin: 18px auto;
  border-radius: 2px;
}

.hero-logo-tagline {
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* Botão CTA abaixo da logo */
.cta-download-hero {
  width: 100%;
  max-width: 300px;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 28px;
  box-shadow: 0 6px 24px rgba(245, 166, 35, .5);
  animation: pulseBadge 2.5s ease-in-out infinite;
}


/* ── Hero single (sem lado direito) ── */
.hero-single {
  justify-content: center;
}

.hero-single .hero-text {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-single .hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-bottom: 20px;
}

.hero-single .hero-text p {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
}

.hero-single .hero-btns {
  justify-content: center;
  gap: 18px;
}

.hero-single .btn {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ── Benefit icon wraps ── */
.card-icon {
  margin-bottom: 20px;
}

.icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.icon-wrap svg {
  width: 36px;
  height: 36px;
}

.icon-red    { background: #FFE8E8; color: #C0392B; }
.icon-blue   { background: #E8F0FF; color: #2355CA; }
.icon-green  { background: var(--green-light); color: var(--green); }
.icon-orange { background: #FFF4E0; color: var(--orange-dark); }

/* ── WhatsApp status msg ── */
.wa-status-msg {
  font-size: .88rem;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.wa-ok {
  background: #d4edda;
  color: #155724;
}

.wa-fail {
  background: #fff3cd;
  color: #856404;
}

/* ── Sections ── */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--green-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--gray-text);
  font-size: 1rem;
  margin-bottom: 48px;
}

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

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .15);
}

.card-icon {
  margin-bottom: 0;
}

.card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.card p {
  color: var(--gray-text);
  font-size: .93rem;
}

/* ── How it works steps ── */
.steps {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.step p {
  font-size: .88rem;
  color: var(--gray-text);
}

/* ── Sorteio badge ── */
.badge-sorteio {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 12px 28px;
  border-radius: 50px;
  letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(245, 166, 35, .5);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(245, 166, 35, .5);
  }

  50% {
    box-shadow: 0 4px 35px rgba(245, 166, 35, .8);
  }
}

/* ── Toast ── */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .9rem;
  box-shadow: var(--shadow);
  transform: translateX(120%);
  transition: transform .4s cubic-bezier(.3, 1.4, .5, 1);
  max-width: 340px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: var(--green);
  color: var(--white);
}

.toast-error {
  background: #c0392b;
  color: var(--white);
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
  animation: modalIn .4s cubic-bezier(.3, 1.2, .5, 1);
}

@keyframes modalIn {
  from {
    transform: scale(.85) translateY(30px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 28px 32px 20px;
  color: var(--white);
}

.modal-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-header p {
  font-size: .88rem;
  opacity: .85;
  margin-top: 4px;
}

.modal-body {
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255, 255, 255, .2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

/* ── Form ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 107, 58, .15);
}

.form-group .hint {
  font-size: .75rem;
  color: #999;
  margin-top: 4px;
}

.form-error {
  color: #c0392b;
  font-size: .82rem;
  margin-top: 4px;
  display: none;
}

.input-error {
  border-color: #c0392b !important;
}

/* ── Panel success (inside modal) ── */
.success-panel {
  display: none;
  text-align: center;
  padding: 8px 0;
}

.success-panel .success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounceIn .6s;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.success-panel h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.success-panel p {
  color: var(--gray-text);
  font-size: .9rem;
  margin-bottom: 24px;
}

.success-panel .sorteio-label {
  font-size: .8rem;
  color: var(--gray-text);
  margin-bottom: 8px;
}

/* ── Flipbook Modal ── */
#flipbookModal .modal-box {
  max-width: 900px;
  background: #1a1a1a;
}

#flipbookModal .modal-header {
  background: linear-gradient(135deg, #111, #222);
}

.flipbook-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  min-height: 580px;
}

.page {
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.page-cover {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 60%, #2d8a52 100%);
  color: var(--white);
  justify-content: space-between;
}

.page-back {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
}

.page-inner {
  color: #333;
}

/* ── Admin Layout ── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--green-dark);
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: var(--white);
}

.sidebar-brand h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-brand small {
  opacity: .6;
  font-size: .75rem;
}

.sidebar-menu {
  list-style: none;
  padding: 12px 0;
  flex: 1;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .8);
  padding: 12px 20px;
  font-size: .88rem;
  transition: all .2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border-left: 3px solid var(--orange);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.admin-main {
  flex: 1;
  background: var(--gray-bg);
  overflow-y: auto;
}

.admin-topbar {
  background: var(--white);
  padding: 16px 28px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.admin-topbar h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
}

.admin-content {
  padding: 28px;
}

/* Admin stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.green {
  background: var(--green-light);
}

.stat-icon.orange {
  background: #FFF4E0;
}

.stat-icon.blue {
  background: #E8F0FE;
}

.stat-icon.purple {
  background: #F3E8FF;
}

.stat-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.stat-info p {
  font-size: .8rem;
  color: var(--gray-text);
  margin-top: 4px;
}

/* Admin table */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  overflow: hidden;
}

.admin-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table-header h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--green-dark);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: .88rem;
  color: #444;
}

tbody tr:hover {
  background: #fafafa;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

/* Admin form */
.admin-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  margin-bottom: 24px;
}

.admin-form-wrap h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 20px;
}

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

.form-group-admin label {
  display: block;
  font-weight: 500;
  font-size: .82rem;
  color: #555;
  margin-bottom: 5px;
}

.form-group-admin input,
.form-group-admin select,
.form-group-admin textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: .88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s;
}

.form-group-admin input:focus,
.form-group-admin select:focus,
.form-group-admin textarea:focus {
  border-color: var(--green);
}

/* Alert boxes */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
}

.pagination a {
  background: var(--white);
  border: 1px solid #e0e0e0;
  color: var(--green);
}

.pagination a:hover {
  background: var(--green-light);
}

.pagination .current {
  background: var(--green);
  color: var(--white);
}

/* Sorteio animation */
.sorteio-roller {
  background: var(--green-light);
  border: 3px solid var(--green);
  border-radius: 16px;
  padding: 24px 32px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  min-height: 80px;
  animation: rollerPulse .15s infinite alternate;
}

@keyframes rollerPulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.01);
  }
}

.winner-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: var(--white);
  animation: winnerReveal .8s cubic-bezier(.3, 1.2, .5, 1);
}

@keyframes winnerReveal {
  from {
    transform: scale(.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.winner-box h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.winner-box .winner-badge {
  background: var(--orange);
  color: var(--white);
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 12px;
}

/* ── Login ── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.login-box h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.login-box p {
  color: var(--gray-text);
  font-size: .88rem;
  margin-bottom: 28px;
}

/* ── Sucesso page ── */
.sucesso-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark), var(--green) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sucesso-box {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  animation: modalIn .6s;
}

.sucesso-box .big-check {
  font-size: 5rem;
  animation: bounceIn .8s;
  margin-bottom: 16px;
}

.sucesso-box h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.sucesso-box .lead {
  color: var(--gray-text);
  margin-bottom: 32px;
}

/* ── Sorteio page ── */
.sorteio-hero {
  background: var(--green-dark);
  color: white;
  padding: 80px 24px 40px;
  text-align: center;
}

.sorteio-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
}

.sorteio-card {
  max-width: 600px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

/* ── Charts ── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.chart-card h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 16px;
  font-size: .95rem;
}

canvas {
  max-height: 280px;
}

/* ── Footer ── */
footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, .8);
  text-align: center;
  padding: 32px 24px;
  font-size: .85rem;
}

footer a {
  color: var(--orange);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 32px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-right {
    order: -1;
  }

  .hero-logo-main {
    width: 160px;
  }

  .hero-logo-card {
    padding: 24px 20px;
  }

  .navbar-logo-sm {
    height: 30px;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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