.elementor-kit-5{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-5 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS */:root {
      --bg-primary: #FAF9F6;
      --bg-secondary: #FFFFFF;
      --bg-card: #FFFFFF;
      --bg-alt: #F3F1EC;
      
      --text-main: #2E3150;
      --text-soft: #7C809B;
      --heading-color: #1E2038;
      
      --primary: #6B8E88;
      --primary-dark: #4F6D68;
      --accent: #F6D55C;
      --accent-soft: #FFF3CD;
      --danger: #ED8A70;
      --success: #52B788;
      
      --card-shadow: 0 10px 30px rgba(46, 49, 80, 0.06);
      --border-color: rgba(46, 49, 80, 0.08);
      
      --font-title: 'Baloo 2', cursive, sans-serif;
      --font-body: 'Quicksand', sans-serif;
      --font-ui: 'Poppins', sans-serif;
      
      --radius-lg: 24px;
      --radius-md: 16px;
      --radius-sm: 10px;
      
      --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* DARK MODE OVERRIDES */
    html.dark {
      --bg-primary: #121324;
      --bg-secondary: #1A1C33;
      --bg-card: #222545;
      --bg-alt: #181A30;
      
      --text-main: #E2E4F6;
      --text-soft: #A3A8CC;
      --heading-color: #FFFFFF;
      
      --primary: #76A39F;
      --primary-dark: #5C7C79;
      --accent: #F4C64F;
      --accent-soft: #3D3520;
      
      --card-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
      --border-color: rgba(255, 255, 255, 0.08);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background-color: var(--bg-primary);
      color: var(--text-main);
      line-height: 1.6;
      transition: background-color 0.4s ease, color 0.4s ease;
      overflow-x: hidden;
    }

    h1, h2, h3, h4 {
      font-family: var(--font-title);
      color: var(--heading-color);
      line-height: 1.2;
    }

    p { margin-bottom: 1rem; }
    button, input, select { font-family: inherit; }

    /* =========================================================
       HEADER & NAVIGATION
    ========================================================= */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 5%;
      background: rgba(255, 248, 239, 0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-color);
      transition: var(--transition);
    }
    html.dark .topbar {
      background: rgba(18, 19, 36, 0.85);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      font-family: var(--font-title);
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--heading-color);
    }
    .brand-icon {
      font-size: 1.6rem;
      animation: floaty 4s ease-in-out infinite;
    }

    .main-nav {
      display: flex;
      gap: 1.2rem;
      align-items: center;
    }
    .main-nav a {
      text-decoration: none;
      color: var(--text-soft);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 20px;
      transition: var(--transition);
    }
    .main-nav a:hover {
      color: var(--primary);
      background: rgba(92, 124, 121, 0.1);
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* Dark Mode Toggle Switch */
    .theme-toggle {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.2rem;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      transition: var(--transition);
    }
    .theme-toggle:hover {
      transform: scale(1.08);
    }

    /* Custom Language Selector with Flags - Floating FAB */
    .lang-dropdown {
      position: fixed !important;
      bottom: 20px;
      right: 20px;
      z-index: 1500 !important;
    }
    .lang-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-card) !important;
      border: 1px solid var(--border-color) !important;
      color: var(--text-main);
      padding: 10px 16px !important;
      border-radius: 30px !important;
      font-size: 0.9rem !important;
      font-weight: 700 !important;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
      transition: var(--transition);
    }
    .lang-btn:hover {
      background: var(--bg-alt) !important;
      transform: translateY(-2px);
    }
    .lang-menu {
      position: absolute;
      bottom: 115% !important;
      top: auto !important;
      right: 0;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      box-shadow: var(--card-shadow);
      display: none;
      flex-direction: column;
      overflow: hidden;
      min-width: 150px;
      z-index: 1510 !important;
    }
    .lang-menu.show { display: flex; }
    .lang-option {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border: none;
      background: none;
      color: var(--text-main);
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      text-align: left;
      transition: var(--transition);
    }
    .lang-option:hover {
      background: rgba(92, 124, 121, 0.15);
      color: var(--primary);
    }

    /* Mobile Menu Toggle Button */
    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      color: var(--heading-color);
      cursor: pointer;
    }

    /* =========================================================
       HERO SECTION WITH ANIMATED BABY & MOON
    ========================================================= */
    .hero {
      padding: 60px 5% 40px;
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      align-items: center;
      gap: 40px;
      min-height: 80vh;
      position: relative;
    }
    .eyebrow {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--primary);
      margin-bottom: 12px;
    }
    .hero h1 {
      font-size: clamp(2.5rem, 5vw, 3.8rem);
      margin-bottom: 16px;
    }
    .hero-sub {
      font-size: 1.15rem;
      color: var(--text-soft);
      max-width: 540px;
      margin-bottom: 24px;
    }
    .hero-btns {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }
    .btn {
      padding: 12px 28px;
      border-radius: 30px;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: var(--transition);
      cursor: pointer;
      border: none;
    }
    .btn-primary {
      background: var(--primary);
      color: #fff;
      box-shadow: 0 8px 20px rgba(92, 124, 121, 0.3);
    }
    .btn-primary:hover {
      transform: translateY(-3px);
      background: var(--primary-dark);
    }
    .btn-secondary {
      background: var(--bg-card);
      color: var(--text-main);
      border: 1px solid var(--border-color);
    }
    .btn-secondary:hover {
      transform: translateY(-3px);
      background: var(--bg-alt);
    }

    /* Interactive Hero Visual Scene */
    .hero-stage {
      position: relative;
      height: 380px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .moon-bg {
      width: 240px;
      height: 240px;
      background: radial-gradient(circle, var(--accent-soft) 0%, var(--accent) 100%);
      border-radius: 50%;
      box-shadow: 0 0 50px rgba(244, 198, 79, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      animation: floaty 6s ease-in-out infinite;
      position: relative;
    }
    
    /* Dynamic Animated Baby Character */
    .baby-avatar {
      width: 140px;
      height: 140px;
      position: relative;
      transition: var(--transition);
    }
    .baby-head-shape {
      width: 100%;
      height: 100%;
      background: #FCE3D6;
      border-radius: 50%;
      position: relative;
      box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1);
    }
    .baby-eye {
      width: 10px;
      height: 4px;
      background: var(--heading-color);
      border-radius: 10px;
      position: absolute;
      top: 55px;
    }
    .baby-eye.left { left: 35px; }
    .baby-eye.right { right: 35px; }
    .baby-cheeks {
      width: 18px;
      height: 10px;
      background: #FFAAA5;
      border-radius: 50%;
      position: absolute;
      top: 65px;
      opacity: 0.7;
    }
    .baby-cheeks.left { left: 22px; }
    .baby-cheeks.right { right: 22px; }
    .baby-mouth {
      width: 12px;
      height: 6px;
      border-bottom: 2px solid var(--heading-color);
      border-radius: 0 0 10px 10px;
      position: absolute;
      bottom: 45px;
      left: calc(50% - 6px);
    }
    
    /* Zzz Sleep Animation */
    .zzz-container {
      position: absolute;
      top: -20px;
      right: -20px;
      font-family: var(--font-title);
      font-weight: 800;
      color: var(--primary);
    }
    .zzz-item {
      position: absolute;
      opacity: 0;
      animation: riseAndFade 3s infinite;
    }
    .zzz-item:nth-child(1) { font-size: 1.2rem; animation-delay: 0s; }
    .zzz-item:nth-child(2) { font-size: 1.6rem; animation-delay: 1s; right: -15px; top: -20px; }
    .zzz-item:nth-child(3) { font-size: 2.1rem; animation-delay: 2s; right: -30px; top: -40px; }

    @keyframes riseAndFade {
      0% { transform: translateY(10px) scale(0.8); opacity: 0; }
      50% { opacity: 1; }
      100% { transform: translateY(-30px) scale(1.2); opacity: 0; }
    }
    @keyframes floaty {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-15px); }
    }

    /* =========================================================
       FLOATING RELÓGIO CRONOLÓGICO WITH EVOLVING BABY
    ========================================================= */
    .chrono-widget {
      display: none !important;
      position: fixed;
      bottom: 20px;
      left: 20px;
      z-index: 90;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      padding: 12px 18px;
      border-radius: 40px;
      box-shadow: var(--card-shadow);
      display: flex;
      align-items: center;
      gap: 14px;
      backdrop-filter: blur(10px);
      transition: var(--transition);
    }
    .chrono-circle {
      position: relative;
      width: 50px;
      height: 50px;
    }
    .chrono-svg {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg);
    }
    .chrono-bg-ring {
      fill: none;
      stroke: var(--border-color);
      stroke-width: 4;
    }
    .chrono-bar {
      fill: none;
      stroke: var(--primary);
      stroke-width: 4;
      stroke-dasharray: 126;
      stroke-dashoffset: 126;
      stroke-linecap: round;
      transition: stroke-dashoffset 0.2s ease;
    }
    .chrono-baby-icon {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
    }
    .chrono-info {
      display: flex;
      flex-direction: column;
    }
    .chrono-phase-label {
      font-size: 0.7rem;
      text-transform: uppercase;
      font-weight: 700;
      color: var(--primary);
    }
    .chrono-age-text {
      font-family: var(--font-title);
      font-size: 1rem;
      font-weight: 700;
      color: var(--heading-color);
    }

    /* =========================================================
       SECTIONS GENERAL STYLING
    ========================================================= */
    .section {
      padding: 80px 5%;
      max-width: 1200px;
      margin: 0 auto;
    }
    .section-title {
      text-align: center;
      margin-bottom: 40px;
    }
    .section-title h2 {
      font-size: 2.2rem;
      margin-bottom: 10px;
    }
    .section-title p {
      color: var(--text-soft);
      max-width: 600px;
      margin: 0 auto;
    }

    #higiene {
      position: relative;
      overflow: hidden;
    }
    .scrolling-moon-bg {
      position: absolute;
      width: 140px;
      height: 140px;
      font-size: 8rem;
      color: var(--accent);
      opacity: 0.08;
      filter: drop-shadow(0 0 30px rgba(246, 213, 92, 0.5));
      pointer-events: none;
      z-index: 0;
      transition: transform 0.1s ease-out;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    #higiene > * {
      position: relative;
      z-index: 1;
    }

    /* Cards Grid */
    .grid-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }
    .card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: var(--card-shadow);
      transition: var(--transition);
      position: relative;
    }
    .card:hover {
      transform: translateY(-5px);
    }

    /* Table styling */
    .sleep-table-wrap {
      overflow-x: auto;
      background: var(--bg-card);
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
      margin-top: 20px;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
    }
    th, td {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-color);
    }
    th {
      background: rgba(92, 124, 121, 0.1);
      color: var(--primary);
      font-family: var(--font-ui);
      font-weight: 600;
    }

    /* =========================================================
       INTERACTIVE ROUTINE BUILDER
    ========================================================= */
    .routine-builder {
      display: flex;
      justify-content: space-around;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      background: var(--bg-card);
      padding: 30px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
    }
    .routine-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      transition: var(--transition);
    }
    .routine-step:hover { transform: scale(1.08); }
    .routine-icon-box {
      width: 70px;
      height: 70px;
      background: var(--bg-alt);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      color: var(--primary);
    }
    .routine-arrow {
      font-size: 1.4rem;
      color: var(--primary);
      opacity: 0.5;
    }

    /* =========================================================
       TIMELINE & BABY STAGE EVOLUTION
    ========================================================= */
    .timeline-tabs {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }
    .timeline-tab-btn {
      padding: 10px 20px;
      border-radius: 30px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      color: var(--text-soft);
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .timeline-tab-btn.active {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }

    .phase-display-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 36px;
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 30px;
      align-items: center;
    }
    .phase-illustration {
      background: var(--bg-alt);
      border-radius: var(--radius-md);
      height: 240px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 20px;
    }
    .phase-illustration-emoji {
      font-size: 4rem;
      margin-bottom: 10px;
      animation: floaty 4s infinite;
    }

    /* =========================================================
       CALCULADORA DE JANELA DE SONO
    ========================================================= */
    .calc-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 30px;
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
      max-width: 600px;
      margin: 0 auto;
    }
    .form-group {
      margin-bottom: 20px;
    }
    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .form-control {
      width: 100%;
      padding: 12px 16px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-color);
      background: var(--bg-primary);
      color: var(--text-main);
      font-size: 1rem;
    }
    .calc-result {
      margin-top: 20px;
      padding: 20px;
      background: var(--bg-alt);
      border-radius: var(--radius-sm);
      text-align: center;
      display: none;
    }

    /* =========================================================
       CHECKLIST DO BERÇO SEGURO
    ========================================================= */
    .crib-checklist {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 16px;
    }
    .crib-item {
      background: var(--bg-card);
      padding: 18px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      gap: 14px;
      cursor: pointer;
      transition: var(--transition);
    }
    .crib-item:hover { background: var(--bg-alt); }
    .crib-icon {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      flex-shrink: 0;
    }
    .crib-icon.safe { background: rgba(42, 157, 143, 0.15); color: var(--success); }
    .crib-icon.unsafe { background: rgba(231, 111, 81, 0.15); color: var(--danger); }

    /* =========================================================
       FAQ ACCORDION
    ========================================================= */
    .faq-item {
      background: var(--bg-card);
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      margin-bottom: 12px;
      overflow: hidden;
    }
    .faq-q {
      width: 100%;
      padding: 18px 24px;
      background: none;
      border: none;
      text-align: left;
      font-family: var(--font-title);
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--heading-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
    }
    .faq-a {
      padding: 0 24px 18px;
      display: none;
      color: var(--text-soft);
    }
    .faq-item.active .faq-a { display: block; }
    .faq-item.active .faq-q i { transform: rotate(180deg); }

    /* =========================================================
       DIÁRIO DO SONO (LOCALSTORAGE)
    ========================================================= */
    .diary-section {
      background: var(--bg-alt);
      border-radius: var(--radius-lg);
      padding: 40px;
      margin-top: 40px;
    }
    .diary-form {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }
    .diary-table {
      width: 100%;
      border-collapse: collapse;
      background: var(--bg-card);
      border-radius: var(--radius-md);
      overflow: hidden;
    }
    .btn-delete {
      background: none;
      border: none;
      color: var(--danger);
      cursor: pointer;
      font-size: 1.1rem;
    }

    /* =========================================================
       FOOTER
    ========================================================= */
    footer {
      text-align: center;
      padding: 40px 5%;
      border-top: 1px solid var(--border-color);
      color: var(--text-soft);
      font-size: 0.9rem;
    }

    /* =========================================================
       TEMAS DINÂMICOS DE SCROLL (DIA / ENTARDECER / NOITE)
    ========================================================= */
    body {
      transition: background-color 1.2s ease, color 1.2s ease, border-color 1.2s ease;
    }
    body.theme-morning {
      --bg-primary: #FAF9F6;
      --bg-secondary: #FFFFFF;
      --bg-alt: #F3F1EC;
      --primary: #6B8E88;
      --primary-dark: #4F6D68;
      --heading-color: #1E2038;
    }
    body.theme-sunset {
      --bg-primary: #FFF5EB;
      --bg-secondary: #FFFFFF;
      --bg-alt: #FFEAD4;
      --primary: #E28743;
      --primary-dark: #B5601F;
      --heading-color: #4A2E16;
    }
    body.theme-evening {
      --bg-primary: #F8F5FF;
      --bg-secondary: #FFFFFF;
      --bg-alt: #EFE6FF;
      --primary: #9F7AEA;
      --primary-dark: #7B52C7;
      --heading-color: #3B1B54;
    }
    body.theme-night {
      --bg-primary: #F0F4FF;
      --bg-secondary: #FFFFFF;
      --bg-alt: #DCE5FF;
      --primary: #5C7CFA;
      --primary-dark: #3B5BDB;
      --heading-color: #1A202C;
      --text-main: #2D3748;
      --text-soft: #718096;
      --border-color: rgba(0, 0, 0, 0.06);
    }

    /* =========================================================
       CUSTOM MODAL POPUP STYLES
    ========================================================= */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(8px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }
    .modal-overlay.active {
      opacity: 1;
      pointer-events: all;
    }
    .modal-container {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      width: 90%;
      max-width: 460px;
      border-radius: var(--radius-lg);
      padding: 30px;
      box-shadow: var(--card-shadow);
      transform: scale(0.9);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
      text-align: center;
    }
    .modal-overlay.active .modal-container {
      transform: scale(1);
    }
    .modal-close-btn {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      font-size: 1.5rem;
      color: var(--text-soft);
      cursor: pointer;
      line-height: 1;
      transition: var(--transition);
    }
    .modal-close-btn:hover {
      color: var(--danger);
      transform: scale(1.15);
    }
    .modal-icon {
      font-size: 3rem;
      margin-bottom: 12px;
      animation: floaty 4s ease-in-out infinite;
    }
    .modal-title {
      font-family: var(--font-title);
      font-size: 1.5rem;
      color: var(--heading-color);
      margin-bottom: 10px;
    }
    .modal-text {
      font-size: 0.95rem;
      color: var(--text-soft);
      margin-bottom: 20px;
      line-height: 1.5;
    }
    .modal-btn {
      background: var(--primary);
      color: #fff;
      padding: 10px 28px;
      border-radius: 30px;
      border: none;
      font-weight: 600;
      font-family: var(--font-ui);
      cursor: pointer;
      box-shadow: 0 6px 15px rgba(92, 124, 121, 0.2);
      transition: var(--transition);
    }
    .modal-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    /* =========================================================
       MITOS E VERDADES (FLIP CARDS)
    ========================================================= */
    .flip-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 24px;
      margin-top: 30px;
    }
    .flip-card {
      background-color: transparent;
      height: 280px;
      perspective: 1000px;
      cursor: pointer;
    }
    .flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      text-align: center;
      transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
      transform-style: preserve-3d;
    }
    .flip-card.flipped .flip-card-inner {
      transform: rotateY(180deg);
    }
    .flip-card-front, .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      border-radius: var(--radius-lg);
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      box-shadow: var(--card-shadow);
      border: 1px solid var(--border-color);
    }
    .flip-card-front {
      background: var(--bg-card);
      color: var(--text-main);
    }
    .flip-card-front .card-icon {
      font-size: 2.8rem;
      margin-bottom: 12px;
      color: var(--primary);
    }
    .flip-card-front h3 {
      font-size: 1.15rem;
      font-family: var(--font-title);
      line-height: 1.3;
    }
    .flip-card-front .click-hint {
      margin-top: 15px;
      font-size: 0.75rem;
      color: var(--text-soft);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .flip-card-back {
      background: var(--bg-card);
      color: var(--text-main);
      transform: rotateY(180deg);
    }
    .flip-card-back.veracidade-true {
      border-top: 8px solid var(--success);
    }
    .flip-card-back.veracidade-false {
      border-top: 8px solid var(--danger);
    }
    .badge-veredicto {
      padding: 4px 12px;
      border-radius: 12px;
      font-weight: 700;
      font-family: var(--font-ui);
      font-size: 0.75rem;
      text-transform: uppercase;
      margin-bottom: 10px;
    }
    .badge-veredicto.verdade {
      background: rgba(42, 157, 143, 0.15);
      color: var(--success);
    }
    .badge-veredicto.mito {
      background: rgba(231, 111, 81, 0.15);
      color: var(--danger);
    }
    .flip-card-back p {
      font-size: 0.85rem;
      line-height: 1.5;
      color: var(--text-soft);
      margin: 0;
    }

    /* =========================================================
       MINI-JOGO DO BERÇO SEGURO
    ========================================================= */
    .game-section {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 24px;
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
      margin-top: 30px;
    }
    .game-grid {
      display: grid;
      grid-template-columns: 1.3fr 0.7fr;
      gap: 24px;
      margin-top: 20px;
    }
    @media (max-width: 850px) {
      .game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }
    .game-score-box {
      background: var(--bg-alt);
      border-radius: var(--radius-md);
      padding: 16px 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 15px;
      border: 1px solid var(--border-color);
    }
    .game-score-text {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 700;
      font-family: var(--font-title);
      font-size: 1.15rem;
    }
    .game-progress-bg {
      background: var(--bg-secondary);
      height: 14px;
      border-radius: 10px;
      overflow: hidden;
      width: 100%;
      border: 1px solid var(--border-color);
    }
    .game-progress-fill {
      height: 100%;
      width: 0%;
      background: var(--danger);
      transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s ease;
    }
    
     /* O Berço Seguro em Visão de Cima */
     .crib-zone {
       background-color: #F8F7F4;
       background-image: url('https://sonodolactente.com.br/wp-content/uploads/2026/08/crib_top.png');
       background-size: contain;
       background-repeat: no-repeat;
       background-position: center;
       border: 2px dashed var(--border-color);
      border-radius: var(--radius-lg);
      height: 420px;
      position: relative;
      overflow: hidden;
      box-shadow: inset 0 4px 15px rgba(0,0,0,0.03);
    }
    @media (max-width: 600px) {
      .crib-zone {
        height: 300px;
      }
    }

    .crib-items-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 3;
    }

    /* Itens de layout estático no berço (Lençol e Protetor) */
    .crib-layout-sheet {
      position: absolute;
      /* Ocupa a área do colchão no centro do berço */
      top: 15%;
      left: 15%;
      right: 15%;
      bottom: 15%;
      background-image: url('https://sonodolactente.com.br/wp-content/uploads/2026/08/item_sheet.png');
      background-size: 100% 100%;
      background-repeat: no-repeat;
      z-index: 1;
      opacity: 0.9;
      pointer-events: none;
      animation: fadeIn 0.3s ease;
    }
    .crib-layout-bumper {
      position: absolute;
      top: 9%;
      left: 9%;
      right: 9%;
      bottom: 9%;
      border: 12px solid transparent;
      border-image: url('https://sonodolactente.com.br/wp-content/uploads/2026/08/item_bumper.png') 30 round;
      z-index: 2;
      pointer-events: none;
      animation: fadeIn 0.3s ease;
    }

    /* Estilo para itens arrastáveis colocados no berço */
    .placed-item {
      position: absolute;
      cursor: grab;
      user-select: none;
      touch-action: none;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.1s ease;
    }
    .placed-item:active {
      cursor: grabbing;
    }
    .placed-item.dragging {
      transform: scale(1.1);
      z-index: 100;
      filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    }
    .placed-item img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      pointer-events: none;
    }

    /* Botão de remoção rápida (x) em cima do item no berço */
    .placed-item-remove {
      position: absolute;
      top: -8px;
      right: -8px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--danger);
      color: #fff;
      border: 2px solid #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 700;
      cursor: pointer;
      z-index: 15;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      transition: var(--transition);
      opacity: 0.8;
      pointer-events: all;
    }
    .placed-item-remove:hover {
      transform: scale(1.15);
      opacity: 1;
      background: #c34d31;
    }

    /* Indicador interativo no bebê */
    .placed-baby-hint {
      position: absolute;
      bottom: -15px;
      background: rgba(46, 49, 80, 0.85);
      color: #fff;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 0.65rem;
      font-weight: 600;
      white-space: nowrap;
      z-index: 16;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      pointer-events: none;
      backdrop-filter: blur(4px);
    }
    
    /* Prateleira (Shelf) Estilo App List */
    .shelf-zone {
      background: var(--bg-alt);
      border-radius: var(--radius-md);
      padding: 16px;
      border: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: 420px;
      overflow-y: auto;
    }
    @media (max-width: 600px) {
      .shelf-zone {
        max-height: 320px;
      }
    }
    .shelf-zone h4 {
      font-family: var(--font-ui);
      font-size: 0.95rem;
      color: var(--heading-color);
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 8px;
      margin-bottom: 4px;
    }
    .shelf-item-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      padding: 8px 12px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: var(--transition);
    }
    .shelf-item-card:hover {
      box-shadow: 0 4px 12px rgba(46, 49, 80, 0.04);
      border-color: var(--primary);
    }
    .shelf-item-img {
      width: 48px;
      height: 48px;
      object-fit: contain;
      flex-shrink: 0;
      border-radius: var(--radius-sm);
      background: var(--bg-alt);
      padding: 4px;
    }
    .shelf-item-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .shelf-item-info strong {
      font-size: 0.85rem;
      color: var(--heading-color);
    }
    .badge-safety {
      display: inline-block;
      align-self: flex-start;
      font-size: 0.65rem;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 8px;
      text-transform: uppercase;
    }
    .badge-safety.safe {
      background: rgba(82, 183, 136, 0.15);
      color: #388e3c;
    }
    .badge-safety.unsafe {
      background: rgba(237, 138, 112, 0.15);
      color: #d32f2f;
    }
    .btn-item-action {
      background: var(--primary);
      color: #fff;
      border: none;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .btn-item-action:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
    }
    .btn-item-action.remove-btn {
      background: var(--bg-alt);
      color: var(--danger);
      border: 1px solid rgba(237, 138, 112, 0.3);
    }
    .btn-item-action.remove-btn:hover {
      background: rgba(237, 138, 112, 0.1);
      color: #c62828;
    }

    /* =========================================================
       CHARACTER BOXES (NURSE & PARENTS)
    ========================================================= */
    .baby-hero-container {
      position: relative;
      width: 250px;
      height: 250px;
      animation: floaty 6s ease-in-out infinite;
    }
    .hero-baby-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 50%;
    }
    .nurse-tip-box {
      background: var(--bg-alt);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 24px;
      display: flex;
      align-items: center;
      gap: 20px;
      margin-top: 30px;
      box-shadow: var(--card-shadow);
    }
    .nurse-img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--primary);
      background: #fff;
      flex-shrink: 0;
    }
    .nurse-tip-content h4 {
      color: var(--primary);
      font-family: var(--font-title);
      margin-bottom: 6px;
      font-size: 1.15rem;
    }
    .nurse-tip-content p {
      font-size: 0.95rem;
      color: var(--text-soft);
      margin: 0;
      font-style: italic;
    }
    .parents-intro-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--bg-alt);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 24px;
      gap: 24px;
      margin-bottom: 24px;
      box-shadow: var(--card-shadow);
    }
    .parents-img {
      width: 120px;
      height: 120px;
      border-radius: var(--radius-md);
      object-fit: cover;
      border: 2px solid var(--border-color);
      background: #fff;
      flex-shrink: 0;
    }
    .parents-text h3 {
      font-size: 1.3rem;
      color: var(--primary);
      margin-bottom: 8px;
    }
    .parents-text p {
      color: var(--text-soft);
      font-size: 0.95rem;
      margin: 0;
    }
    @media (max-width: 650px) {
      .nurse-tip-box {
        flex-direction: column;
        text-align: center;
      }
      .parents-intro-box {
        flex-direction: column-reverse;
        text-align: center;
      }
    }

    /* =========================================================
       DIÁRIO DO SONO (UNIFICADO)
    ========================================================= */
    .diary-section {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 36px;
      border: 1px solid var(--border-color);
      box-shadow: var(--card-shadow);
      margin-top: 30px;
    }
    .diary-form {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 20px;
      margin-bottom: 35px;
      padding-bottom: 25px;
      border-bottom: 1px solid var(--border-color);
    }
    .diary-table {
      width: 100%;
      border-collapse: collapse;
      background: var(--bg-card);
      border-radius: var(--radius-md);
      overflow: hidden;
    }
    .diary-table th, .diary-table td {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-color);
    }
    .diary-table th {
      background: rgba(92, 124, 121, 0.1);
      color: var(--primary);
      font-family: var(--font-ui);
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .diary-table td {
      font-size: 0.95rem;
    }
    .btn-delete {
      background: none;
      border: none;
      color: var(--danger);
      cursor: pointer;
      font-size: 1.1rem;
      transition: var(--transition);
      padding: 4px;
    }
    .btn-delete:hover {
      transform: scale(1.15);
    }

    /* Stats Grid */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
      margin-top: 20px;
    }
    .stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 20px;
      text-align: center;
      box-shadow: var(--card-shadow);
      transition: var(--transition);
    }
    .stat-card:hover {
      transform: translateY(-3px);
    }
    .stat-icon {
      font-size: 1.8rem;
      color: var(--primary);
      margin-bottom: 8px;
    }
    .stat-val {
      font-family: var(--font-title);
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--heading-color);
      margin-top: 5px;
    }
    .stat-lbl {
      font-size: 0.8rem;
      color: var(--text-soft);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* =========================================================
       APP NAVIGATION (BOTTOM BAR & CHAPTER PROGRESS)
    ========================================================= */
    .reading-progress-container {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: rgba(0, 0, 0, 0.05);
    }
    .reading-progress-bar {
      height: 100%;
      width: 0%;
      background: var(--primary);
      transition: width 0.1s ease;
    }
    /* Ocultar menus redundantes e hamburger para visual puro de App/Cartilha */
    .main-nav, .mobile-menu-btn {
      display: none !important;
    }

    /* Chapter Dropdown Widget */
    .chapter-dropdown {
      position: relative;
      margin-left: 20px;
    }
    @media (max-width: 500px) {
      .chapter-dropdown {
        margin-left: 8px;
      }
    }
    .chapter-dropdown-btn {
      display: flex;
      align-items: center;
      background: rgba(107, 142, 136, 0.1);
      color: var(--primary);
      border: 1px solid rgba(107, 142, 136, 0.15);
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 700;
      font-family: var(--font-ui);
      cursor: pointer;
      transition: var(--transition);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .chapter-dropdown-btn:hover {
      background: rgba(107, 142, 136, 0.18);
      transform: translateY(-1px);
    }
    .chapter-dropdown-menu {
      position: absolute;
      top: 120%;
      left: 0;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      box-shadow: var(--card-shadow);
      display: none;
      flex-direction: column;
      min-width: 260px;
      z-index: 110;
      overflow: hidden;
      animation: slideDown 0.2s ease-out;
    }
    .chapter-dropdown-menu.show {
      display: flex;
    }
    .chapter-dropdown-menu a {
      display: block;
      padding: 12px 18px;
      color: var(--text-main);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 600;
      font-family: var(--font-ui);
      transition: var(--transition);
      border-bottom: 1px solid var(--border-color);
      text-align: left;
    }
    .chapter-dropdown-menu a:last-child {
      border-bottom: none;
    }
    .chapter-dropdown-menu a:hover {
      background: rgba(107, 142, 136, 0.08);
      color: var(--primary);
      padding-left: 24px;
    }
    @keyframes slideDown {
      0% { opacity: 0; transform: translateY(-8px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .bottom-nav-bar {
      display: none !important;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 64px;
      background: var(--bg-card);
      border-top: 1px solid var(--border-color);
      box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
      z-index: 1000;
      justify-content: space-around;
      align-items: center;
    }
    @media (max-width: 900px) {
      .bottom-nav-bar {
        display: none !important;
      }
      body {
        padding-bottom: 0px;
      }
    }
    .bottom-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      color: var(--text-soft);
      font-size: 0.7rem;
      font-weight: 600;
      font-family: var(--font-ui);
      gap: 4px;
      flex: 1;
      height: 100%;
      transition: var(--transition);
    }
    .bottom-nav-item i {
      font-size: 1.15rem;
    }
    .bottom-nav-item.active {
      color: var(--primary);
    }
    
    @media (max-width: 500px) {
      .topbar .brand span[data-i18n="brand"] {
        display: none;
      }
    }

    /* RESPONSIVE DESIGN */
    @media (max-width: 900px) {
      .hero { grid-template-columns: 1fr; text-align: center; }
      .hero-sub { margin: 0 auto 24px; }
      .hero-btns { justify-content: center; }
      .phase-display-card { grid-template-columns: 1fr; }
      .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--bg-card);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--card-shadow);
        transition: var(--transition);
      }
      .main-nav.open { right: 0; }
      .mobile-menu-btn { display: block; }
    }/* End custom CSS */