/* ═══════════════════════════════════════════════
   PLATAFORMA PÁSCOA LUCRATIVA™ – Design System
   ═══════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #FFC107;
    --gold-dark: #F9A825;
    --gold-light: #FFD54F;
    --gold-subtle: rgba(255, 193, 7, .12);
    --blue: #29B6F6;
    --blue-dark: #0288D1;
    --blue-subtle: rgba(41, 182, 246, .12);
    --brown: #3D1D13;
    --brown-light: #5D2E1F;
    --brown-subtle: rgba(61, 29, 19, .06);
    --white: #FFFFFF;
    --off-white: #FFF8F0;
    --bg: #F7F3EE;
    --bg2: #FFF9F4;
    --gray-100: #F5F0EA;
    --gray-300: #E5DDD5;
    --gray-500: #9E8E80;
    --gray-700: #6B5B4E;
    --text: #2C1A10;
    --text-muted: #8D7060;
    --success: #4CAF50;
    --success-subtle: rgba(76, 175, 80, .12);
    --sidebar-w: 270px;
    --topbar-h: 64px;
    --shadow-sm: 0 2px 8px rgba(61, 29, 19, .08);
    --shadow-md: 0 4px 20px rgba(61, 29, 19, .12);
    --shadow-lg: 0 12px 48px rgba(61, 29, 19, .16);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Outfit', sans-serif;
    --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--brown);
    color: var(--white);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.sidebar.open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 193, 7, .35);
}

.sidebar-logo-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

.sidebar-logo-title span {
    color: var(--gold);
}

.sidebar-logo-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, .45);
    margin-top: 2px;
    font-weight: 400;
}

.sidebar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .5);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
    transition: all var(--transition);
    display: none;
}

.sidebar-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .1);
}

@media (max-width: 1023px) {
    .sidebar-close {
        display: block;
    }
}

/* Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 4px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .3);
    padding: 16px 18px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, .65);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 0;
    transition: all var(--transition);
    position: relative;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .07);
}

.nav-item.active {
    color: var(--gold);
    background: rgba(255, 193, 7, .12);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.nav-label {
    flex: 1;
    line-height: 1.3;
}

.nav-badge {
    width: 18px;
    height: 18px;
    background: var(--success);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.nav-badge.show {
    display: flex;
}

.nav-bonus {
    color: var(--gold-light) !important;
}

.nav-bonus .nav-icon {
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {

    0%,
    100% {
        transform: rotate(0)
    }

    20% {
        transform: rotate(-8deg)
    }

    40% {
        transform: rotate(8deg)
    }

    60% {
        transform: rotate(-4deg)
    }

    80% {
        transform: rotate(4deg)
    }
}

/* Sidebar footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    flex-shrink: 0;
}

.sidebar-progress-wrap {
    margin-bottom: 14px;
}

.sidebar-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 6px;
}

.sidebar-logout {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
    text-decoration: none;
    transition: color var(--transition);
    text-align: center;
}

.sidebar-logout:hover {
    color: rgba(255, 255, 255, .7);
}

/* ═══ OVERLAY ═══ */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ═══ MAIN CONTENT ═══ */
.main-content {
    transition: margin-left .3s cubic-bezier(.4, 0, .2, 1);
    min-height: 100vh;
    padding-bottom: 40px;
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: var(--sidebar-w);
    }
}

/* ═══ TOPBAR ═══ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(61, 29, 19, .06);
}

.topbar-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--brown);
    padding: 4px;
    border-radius: 8px;
    transition: background var(--transition);
    display: flex;
}

.topbar-hamburger:hover {
    background: var(--gray-100);
}

@media (min-width: 1024px) {
    .topbar-hamburger {
        display: none;
    }
}

.topbar-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--brown);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--brown);
    box-shadow: 0 2px 8px rgba(255, 193, 7, .35);
    text-transform: uppercase;
}

/* ═══ SECTION ═══ */
.section {
    padding: 24px 20px;
    max-width: 860px;
    margin: 0 auto;
    animation: fadeIn .35s ease;
}

.section.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ═══ GREETING ═══ */
.greeting-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.greeting-title {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    color: var(--brown);
    margin-bottom: 4px;
}

.greeting-title span {
    color: var(--gold-dark);
}

.greeting-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.btn-continue {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(41, 182, 246, .4);
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 182, 246, .5);
}

/* ═══ STATS ═══ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card--gold {
    border-top: 3px solid var(--gold);
}

.stat-card--blue {
    border-top: 3px solid var(--blue);
}

.stat-icon {
    font-size: 28px;
}

.stat-icon-fa {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--brown);
    flex-shrink: 0;
}

.stat-icon-fa--gold {
    background: rgba(255, 193, 7, .15);
    color: var(--gold-dark);
}

.stat-icon-fa--blue {
    background: rgba(41, 182, 246, .15);
    color: var(--blue-dark);
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--brown);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ═══ PROGRESS CARD ═══ */
.progress-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
}

.progress-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.progress-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brown);
}

.progress-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.progress-card-pct {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-dark);
}

/* Progress bar */
.progress-bar-track {
    background: var(--gray-100);
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-track--lg {
    height: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: 99px;
    width: 0%;
    transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

.progress-bar-fill--gold {}

.progress-bar-fill--blue {
    background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}

.progress-bar-fill--animated {
    position: relative;
    overflow: hidden;
}

.progress-bar-fill--animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%)
    }

    to {
        transform: translateX(100%)
    }
}

/* Modules mini grid */
.modules-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.module-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--gray-300);
}

.module-dot.done {
    background: var(--success-subtle);
    color: var(--success);
    border-color: rgba(76, 175, 80, .25);
}

.module-dot:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ═══ META CARD ═══ */
.meta-card {
    background: linear-gradient(135deg, var(--brown), var(--brown-light));
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.meta-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.meta-card-icon {
    font-size: 34px;
}

.meta-card-title {
    font-size: 17px;
    font-weight: 700;
}

.meta-card-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    margin-top: 2px;
}

.meta-progress-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-col {
    flex-shrink: 0;
    text-align: center;
}

.meta-bar-wrap {
    flex: 1;
}

.meta-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold-light);
}

.meta-number--current {
    color: var(--white);
}

.meta-number-label {
    font-size: 10px;
    color: rgba(255, 255, 255, .5);
}

.meta-bar-wrap .progress-bar-track {
    background: rgba(255, 255, 255, .15);
}

/* ═══ MOTIVATIONAL ═══ */
.motive-block {
    background: linear-gradient(135deg, var(--gold-subtle), rgba(41, 182, 246, .06));
    border: 1px solid rgba(255, 193, 7, .25);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 24px;
}

.motive-quote {
    font-size: 18px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 8px;
    font-style: italic;
}

.motive-text {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ═══ BADGES ═══ */
.badges-section {
    margin-bottom: 8px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 16px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.badge-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
    transition: transform var(--transition), box-shadow var(--transition);
}

.badge-card.unlocked {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(255, 193, 7, .2);
}

.badge-card:hover {
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 36px;
    margin-bottom: 8px;
    transition: filter var(--transition);
}

.badge-icon.badge-locked {
    filter: grayscale(1) opacity(.4);
}

.badge-card.unlocked .badge-icon {
    filter: none;
    animation: popIn .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.badge-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--brown);
    line-height: 1.3;
    margin-bottom: 4px;
}

.badge-status {
    font-size: 10px;
    color: var(--text-muted);
}

.badge-card.unlocked .badge-status {
    color: var(--gold-dark);
    font-weight: 600;
}

/* ═══ MODULE HERO ═══ */
.module-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.module-hero-number {
    font-size: 52px;
    font-weight: 800;
    color: rgba(255, 255, 255, .12);
    line-height: 1;
    flex-shrink: 0;
}

.module-hero--1 {
    background: linear-gradient(135deg, #3D1D13, #5D2E1F);
}

.module-hero--2 {
    background: linear-gradient(135deg, #2E1503, #6D3B1A);
}

.module-hero--3 {
    background: linear-gradient(135deg, #F9A825, #E65100);
}

.module-hero--3 .module-hero-number {
    color: rgba(0, 0, 0, .12);
}

.module-hero--3 .module-hero-title {
    color: var(--white);
}

.module-hero--3 .module-hero-sub {
    color: rgba(255, 255, 255, .8);
}

.module-hero--4 {
    background: linear-gradient(135deg, #01579B, #0288D1);
}

.module-hero--5 {
    background: linear-gradient(135deg, #197742, #2E7D32);
}

.module-hero--6 {
    background: linear-gradient(135deg, #6A1B9A, #8E24AA);
}

.module-hero--7 {
    background: linear-gradient(135deg, #37474F, #546E7A);
}

.module-hero--suporte {
    background: linear-gradient(135deg, #1565C0, #1976D2);
}

.module-hero-title {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 800;
    margin-bottom: 4px;
}

.module-hero-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

/* ═══ CONTENT CARD ═══ */
.content-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
}

.content-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 14px;
}

.content-card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ═══ VIDEO ═══ */
.video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--brown);
    margin-bottom: 10px;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ═══ CHECKLIST ═══ */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    border: 1px solid var(--gray-300);
}

.check-item:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
}

.check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-dark);
    cursor: pointer;
    flex-shrink: 0;
}

.check-item span {
    font-size: 14px;
    color: var(--text);
}

.check-item:has(input:checked) span {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ═══ DOWNLOAD ═══ */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    cursor: pointer;
}

.download-btn:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
    transform: translateX(4px);
}

.download-btn--gold {
    background: linear-gradient(135deg, var(--gold-subtle), rgba(255, 193, 7, .06));
    border-color: var(--gold);
}

.download-icon {
    width: 38px;
    height: 38px;
    font-size: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.download-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
}

.download-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ═══ COMPLETE BUTTON ═══ */
.btn-complete {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--brown);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(255, 193, 7, .4);
    position: relative;
    overflow: hidden;
    letter-spacing: .3px;
}

.btn-complete::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent);
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 193, 7, .5);
}

.btn-complete:active {
    transform: translateY(0);
}

.btn-complete.done {
    background: linear-gradient(135deg, var(--success), #388E3C);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(76, 175, 80, .3);
    cursor: default;
    pointer-events: none;
}

/* ═══ LESSONS ═══ */
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lesson-item {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg);
    cursor: pointer;
    transition: background var(--transition);
}

.lesson-header:hover {
    background: var(--gold-subtle);
}

.lesson-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dark);
    background: var(--gold-subtle);
    padding: 2px 8px;
    border-radius: 99px;
    flex-shrink: 0;
}

.lesson-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
}

.lesson-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.lesson-item.expanded .lesson-arrow {
    transform: rotate(180deg);
}

.lesson-body {
    padding: 16px;
}

.lesson-body.hidden {
    display: none;
}

/* ═══ GALLERY ═══ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--gold-subtle), var(--blue-subtle));
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

/* ═══ CALCULATOR ═══ */


.calc-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--brown);
}

.calc-field input {
    padding: 11px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    color: var(--brown);
    background: var(--off-white);
    outline: none;
    transition: border-color var(--transition);
}

.calc-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, .12);
}

.calc-result {
    background: linear-gradient(135deg, var(--brown), var(--brown-light));
    border-radius: var(--radius);
    padding: 20px;
    color: var(--white);
}

.calc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.calc-result-label {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 4px;
}

.calc-result-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light);
}

.calc-result-value--big {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
}

/* ═══ SCRIPTS ═══ */
.scripts-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.script-tab {
    padding: 8px 16px;
    border-radius: 99px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.script-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--brown);
}

.script-tab:hover:not(.active) {
    border-color: var(--gold);
    color: var(--brown);
}



.tab-content.hidden {
    display: none;
}

.script-block {
    background: var(--bg);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.script-text {
    padding: 16px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
    font-family: var(--font);
}

.btn-copy {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: .3px;
}

.btn-copy:hover {
    filter: brightness(1.1);
}

.btn-copy.copied {
    background: linear-gradient(135deg, var(--success), #388E3C);
}

/* ═══ ARTS GALLERY ═══ */
.arts-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.art-card {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.art-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.art-preview {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

.art-preview-content {
    color: rgba(255, 255, 255, .85);
}

.art-preview--1 {
    background: linear-gradient(135deg, #3D1D13, var(--gold));
}

.art-preview--1 .art-preview-content {
    font-size: 28px;
}

.art-preview--2 {
    background: linear-gradient(135deg, #6D3B1A, #FFC107);
}

.art-preview--2 .art-preview-content {
    font-size: 28px;
}

.art-preview--3 {
    background: linear-gradient(135deg, #29B6F6, #01579B);
}

.art-preview--3 .art-preview-content {
    font-size: 28px;
}

.art-preview--4 {
    background: linear-gradient(135deg, #E65100, #FF6D00);
}

.art-preview--4 .art-preview-content {
    font-size: 28px;
}

.art-preview--5 {
    background: linear-gradient(135deg, #6A1B9A, #CE93D8);
}

.art-preview--5 .art-preview-content {
    font-size: 28px;
}

.art-preview--6 {
    background: linear-gradient(135deg, #197742, #A5D6A7);
}

.art-preview--6 .art-preview-content {
    font-size: 28px;
}

.art-info {
    padding: 10px 12px;
}

.art-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 6px;
}

.btn-canva {
    display: block;
    padding: 7px;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-subtle), rgba(41, 182, 246, .18));
    border: 1px solid var(--blue);
    border-radius: var(--radius-xs);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--blue-dark);
    text-decoration: none;
    transition: all var(--transition);
}

.btn-canva:hover {
    background: var(--blue);
    color: var(--white);
}

/* ═══ SUPPLIERS ═══ */
.suppliers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.supplier-item {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.supplier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    background: var(--bg);
    transition: background var(--transition);
}

.supplier-header:hover {
    background: var(--gold-subtle);
}

.supplier-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.supplier-category {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
}

.cat-chocolate {
    background: rgba(93, 46, 31, .12);
    color: var(--brown);
}

.cat-embalagem {
    background: var(--blue-subtle);
    color: var(--blue-dark);
}

.cat-recheo {
    background: rgba(76, 175, 80, .12);
    color: #2E7D32;
}

.cat-forma {
    background: var(--gold-subtle);
    color: var(--gold-dark);
}

.cat-decoracao {
    background: rgba(106, 27, 154, .1);
    color: #6A1B9A;
}

.supplier-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
}

.supplier-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.supplier-item.expanded .supplier-arrow {
    transform: rotate(180deg);
}

.supplier-body {
    padding: 16px;
}

.supplier-body.hidden {
    display: none;
}

.supplier-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text);
}

.supplier-details>div {
    line-height: 1.5;
}

.supplier-details strong {
    color: var(--brown);
}

/* ═══ CALLOUT ═══ */
.callout {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.6;
}

.callout--gold {
    background: var(--gold-subtle);
    border: 1px solid rgba(255, 193, 7, .3);
    color: var(--brown);
}

.callout--bonus {
    background: linear-gradient(135deg, var(--gold-subtle), rgba(255, 45, 85, .05));
    border: 1px solid rgba(255, 193, 7, .4);
    color: var(--brown);
}

.callout-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* ═══ BONUS SECTION ═══ */
.bonus-hero {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, var(--brown) 0%, #6D3B1A 50%, var(--gold-dark) 100%);
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.bonus-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bonus-badge-wrap {
    margin-bottom: 14px;
}

.bonus-badge-anim {
    display: inline-flex;
    font-size: 52px;
    animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.bonus-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.bonus-subtitle {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 800;
    margin-bottom: 10px;
}

.bonus-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
    font-style: italic;
}

.bonus-card {
    border: 2px solid var(--gold) !important;
}

.bonus-card-header {
    margin-bottom: 10px;
}

.bonus-star-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--brown);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
    letter-spacing: .5px;
}

.bonus-card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ═══ MODULE 4 INTERACTIVE ═══ */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.strategy-pill {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

.strategy-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--gold);
}

.strategy-pill-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.strategy-pill-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 8px;
}

.strategy-pill-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.simulator-box {
    background: linear-gradient(135deg, var(--gold-subtle), rgba(255, 193, 7, 0.05));
    border: 2px dashed var(--gold);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 24px;
}

.simulator-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brown);
    margin-bottom: 20px;
    text-align: center;
}

.simulator-input-wrap {
    margin-bottom: 20px;
}

.simulator-input-wrap label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 8px;
}

.simulator-input-wrap input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font);
    background: var(--white);
}

.simulator-result {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.simulator-result-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.simulator-result-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold-dark);
}

/* ═══ SUPPORT ═══ */
.support-whatsapp {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wa-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.wa-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brown);
}

.wa-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-wa {
    margin-left: auto;
    padding: 11px 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(37, 211, 102, .3);
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
}

.garantia-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, .08), rgba(76, 175, 80, .04));
    border: 2px solid rgba(76, 175, 80, .3);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
}

.garantia-icon {
    font-size: 44px;
    flex-shrink: 0;
}

.garantia-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--brown);
    margin-bottom: 8px;
}

.garantia-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ═══ FAQ ═══ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
    cursor: pointer;
    background: var(--bg);
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--gold-subtle);
}

.faq-arrow {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--gray-300);
}

.faq-answer.hidden {
    display: none;
}

/* ═══ MODAL ═══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: modalIn .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes modalIn {
    from {
        transform: scale(.7);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.modal-icon {
    font-size: 58px;
    margin-bottom: 14px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--brown);
    margin-bottom: 8px;
}

.modal-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
}

.btn-modal-ok {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--brown);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-modal-ok:hover {
    transform: translateY(-2px);
}

/* ═══ CONFETTI ═══ */
.confetti-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    opacity: 0;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0
    }
}

/* ═══ STRATEGIC CHECKLIST (MODULE 1) ═══ */
.strategic-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-details {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.check-details[open] {
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
}

.check-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
}

.check-summary::-webkit-details-marker {
    display: none;
}

.check-summary i {
    font-size: 14px;
    color: var(--gray-500);
    transition: var(--transition);
}

.check-details[open] .check-summary i {
    transform: rotate(180deg);
    color: var(--blue);
}

.check-content {
    padding: 0 16px 16px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    border-top: 1px solid var(--gray-100);
    padding-top: 12px;
}

/* ═══ ART GALLERY REFINEMENT ═══ */
.art-preview {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.art-card:hover .art-preview img {
    transform: scale(1.05);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
    .section {
        padding: 16px 14px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .calc-result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .arts-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-whatsapp {
        flex-direction: column;
    }

    .btn-wa {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .meta-progress-row {
        flex-direction: column;
    }

    .garantia-card {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}