/* ==============================================
   ESTILO PRINCIPAL — Confeiteira
   Design minimalista · foco em conversão
   ============================================== */

/* ─── Importação de Fontes ───────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── SVG Icons ─────────────────────────────────────── */
svg.icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

/* Icones soltos (sem classe, dentro de spans/divs) */
.step__icon svg,
.feature-card__icon svg,
.thanks__icon svg,
.header__logo-icon svg,
.splash__emoji svg,
.hero__badge svg,
.btn svg,
.admin-sidebar a svg,
.admin-main h1 svg,
.admin-stat__label svg,
.tab-nav a svg,
.config-section h2 svg,
.admin-card h2 svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

/* Icones maiores */
.step__icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-card__icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.thanks__icon svg {
    width: 4rem;
    height: 4rem;
}

.camada svg {
    width: 1.2rem;
    height: 1.2rem;
}

:root {
    /* Paleta principal */
    --red:        #E74C3C;
    --red-dark:   #C0392B;
    --red-light:  #FDEDEC;
    --orange:     #F39C12;
    --orange-soft:#FEF5E7;
    --green:      #D43728;
    --green-dark: #B03A2E;
    --green-light:#F5D0CC;
    --green-soft: #FDE8E5;

    /* Neutros */
    --bg:         #FAFAFA;
    --bg-card:    #FFFFFF;
    --border:     #ECECEC;
    --text:       #2C2C2C;
    --text-muted: #888888;
    --text-light: #AAAAAA;

    /* Sombra */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl:  0 20px 60px rgba(0,0,0,0.10);

    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transições */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fast: 0.2s var(--ease);
    --med:  0.35s var(--ease);
    --slow: 0.5s var(--ease);

    /* Fonte */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* ─── Container ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 95vw; /* 1200px */
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1400px;
}

/* ─── Tipografia ────────────────────────────────────── */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

.heading-display {
    font-family: var(--font-display);
    font-weight: 700;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
}

.text-center { text-align: center; }

/* ─── Botões ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

/* CTA principal — Coral (conversão) */
.btn--primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 55, 40, 0.3);
}

.btn--primary:hover {
    background: var(--green-dark);
    box-shadow: 0 6px 20px rgba(176, 58, 46, 0.4);
    transform: translateY(-2px);
}

/* Secundário — Vermelho */
.btn--secondary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
}

.btn--secondary:hover {
    background: var(--red-dark);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* Outline */
.btn--outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 16px;
}

.btn--ghost:hover {
    color: var(--text);
    background: rgba(0,0,0,0.03);
}

.btn--lg {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn--block {
    width: 100%;
}

.btn--disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── Header / Navbar ──────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--med);
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.header__logo-icon {
    font-size: 1.8rem;
}

.header__logo-img {
    display: block;
    object-fit: contain;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-weight: 500;
    color: #fff;
    transition: all var(--fast);
}

.header__nav a:hover {
    color: var(--text);
    background: rgba(0,0,0,0.03);
}

.header__nav .btn--header {
    color: #111 !important;
}

/* ─── Hero (Landing Page) ──────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-light) 0%, var(--orange-soft) 50%, var(--red-light) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(231,76,60,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(212,55,40,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero__content {
    text-align: center;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.5);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}

.hero__title span {
    color: var(--red);
}

.hero__desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.hero__stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.hero__stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ─── Seção de Recursos ────────────────────────────── */
.features {
    padding: 100px 0;
    background: var(--bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: all var(--med);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Como Funciona ────────────────────────────────── */
.how-it-works {
    padding: 100px 0;
    background: #fff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: var(--red-light);
    color: var(--red);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    font-family: var(--font);
}

.step__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   INSTAGRAM FEED / CARROSSEL
   ══════════════════════════════════════════════════════ */

.instagram-feed {
    padding: 80px 0;
    background: var(--bg);
    overflow: hidden;
}

.instagram-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 32px auto 24px;
    max-width: 100%;
    position: relative;
}

.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.carousel-item {
    flex: 0 0 320px;
    min-width: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
    transition: all var(--fast);
}

.carousel-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.carousel-item iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: none;
}

/* Botões do carrossel */
.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all var(--fast);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.instagram-feed__profile {
    margin-top: 24px;
}

/* ─── Tablet (641px - 1024px) ──────────────────────── */
@media (max-width: 1024px) {
    .instagram-carousel {
        gap: 6px;
    }

    .carousel-item {
        flex: 0 0 calc(50vw - 80px);
        min-width: 220px;
        max-width: 320px;
    }

    .carousel-item iframe {
        height: 380px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ─── Mobile (≤ 640px) ─────────────────────────────── */
@media (max-width: 640px) {
    .hide--mobile{
        display: none;
    }

    #categoriaPanels{
        margin-bottom: 50px;
    }

    .instagram-feed {
        padding: 48px 0;
    }

    .instagram-feed .container {
        padding: 0 12px;
    }

    .instagram-carousel {
        gap: 4px;
        margin: 24px auto 16px;
    }

    .carousel-track {
        gap: 12px;
    }

    .carousel-item {
        flex: 0 0 calc(100vw - 100px);
        min-width: 220px;
    }

    .carousel-item iframe {
        height: 380px;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
        border-width: 1.5px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ─── Mobile pequeno (≤ 400px) ─────────────────────── */
@media (max-width: 400px) {
    .carousel-item {
        flex: 0 0 calc(100vw - 80px);
        min-width: 180px;
    }

    .carousel-item iframe {
        height: 340px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ─── Footer ───────────────────────────────────────── */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 40px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.footer__social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 1.2rem;
    transition: all var(--fast);
}

.footer__social a:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

.footer__copy {
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ══════════════════════════════════════════════════════
   PÁGINA DE MONTAGEM
   ══════════════════════════════════════════════════════ */

.builder {
    padding-top: 96px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.builder__header {
    text-align: center;
    margin-bottom: 48px;
}

.builder__header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.builder__header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.builder__layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* ─── Sidebar — Preview do Bolo ────────────────────── */
.builder__sidebar {
    position: sticky;
    top: 96px;
    min-width: 0;
}

.preview-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.preview-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Visual do bolo */
.bolo-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    padding-top: 4px;
}

.camada {
    width: 180px;
    height: 34px;
    border-radius: 4px;
    margin-bottom: 3px;
    transition: all var(--med);
    position: relative;
}

.camada--massa {
    background: #D4A574;
    height: 44px;
    border-radius: 4px 4px 8px 8px;
    width: 200px;
}

.camada--recheio {
    background: #FFF8E7;
    height: 18px;
    border: 2px dashed #E8DCC8;
    width: 200px;
    border-radius: 2px;
}

.camada--cobertura {
    height: 28px;
    width: 200px;
    border-radius: 8px 8px 4px 4px;
    margin-bottom: 0;
    border: 2px solid transparent;
    position: relative;
    z-index: 2;
}

.camada--decoracao {
    position: relative;
    font-size: 1.5rem;
    width: auto;
    height: auto;
    background: none !important;
    border: none !important;
    margin-bottom: 2px;
    z-index: 3;
}

.bolo-prato {
    width: 220px;
    height: 14px;
    background: linear-gradient(to bottom, #E0E0E0, #CCC);
    border-radius: 0 0 50% 50%;
    margin-top: 4px;
}

.bolo-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 500;
}

/* Preço no preview */
.preview-card__price {
    margin: 20px 0;
}

.preview-card__price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
}

.preview-card__price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Resumo rápido no preview */
.preview-card__resumo {
    text-align: left;
    margin: 20px 0;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.preview-card__resumo-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}

.preview-card__resumo-item:last-child {
    border-bottom: none;
}

.preview-card__resumo-item span:first-child {
    color: var(--text-muted);
}

/* ─── Área de Opções ───────────────────────────────── */
.builder__options {
    min-height: 400px;
    min-width: 0;
}

/* Categorias / Abas */
.categoria-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 32px;
    padding: 4px;
    background: var(--bg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categoria-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.categoria-tab:hover {
    color: var(--text);
    background: rgba(0,0,0,0.03);
}

.categoria-tab.active {
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.categoria-tab__icon {
    font-size: 1.2rem;
}

.categoria-tab__count {
    font-size: 0.75rem;
    background: var(--border);
    padding: 2px 8px;
    border-radius: 100px;
    color: var(--text-muted);
}

/* Painel de cada categoria */
.categoria-panel {
    display: none;
    animation: fadeIn 0.3s var(--ease);
}

.categoria-panel.active {
    display: block;
}

.categoria-panel__header {
    margin-bottom: 24px;
}

.categoria-panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.categoria-panel__subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.categoria-panel__hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--orange);
    margin-top: 8px;
    font-weight: 500;
}

.categoria-panel__hint--exclusiva {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 600;
}

/* Grid de opções */
.opcoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Card de opção */
.opcao-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    cursor: pointer;
    transition: all var(--fast);
    user-select: none;
    touch-action: manipulation;
}

.opcao-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.12);
}

.opcao-card.selected {
    border-color: var(--green);
    background: var(--green-soft);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}

.opcao-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.opcao-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all var(--fast);
    color: transparent;
}

.opcao-card.selected .opcao-card__check {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.opcao-card__color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 2px solid var(--border);
    display: inline-block;
}

.opcao-card__name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    display: block;
}

.opcao-card__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.opcao-card__price {
    font-weight: 700;
    color: var(--green);
    font-size: 1rem;
}

.opcao-card__price--free {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
}

.opcao-card__badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--orange-soft);
    color: var(--orange);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ─── Barra de ação fixa (mobile) ──────────────────── */
.builder__action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.builder__action-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.builder__action-bar-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
}

/* ─── Modal de Finalização ──────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
    animation: fadeIn 0.2s var(--ease);
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 992px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.35s var(--ease);
}

.modal__header {
    text-align: center;
    margin-bottom: 32px;
}

.modal__header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.modal__header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all var(--fast);
}

.modal__close:hover {
    background: var(--red-light);
    color: var(--red);
}

/* ─── Formulário ───────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Resumo do pedido no modal */
.modal-resumo {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.modal-resumo__item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.modal-resumo__item:last-child {
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--green);
}

/* ═══ Seção de Entrega (Modal) ════════════════════════ */
.entrega-section {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.entrega-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.entrega-section__icon {
    font-size: 1.2rem;
}

.entrega-section__badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--orange-soft);
    color: var(--orange);
    white-space: nowrap;
    transition: all var(--fast);
}

/* Status do frete */
.frete-status {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--green-soft);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--green);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: slideUp 0.3s var(--ease);
}

.frete-status__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
}

.frete-status__loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Toast / Notificação ──────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    background: var(--text);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.925rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s var(--ease);
    max-width: 400px;
}

.toast--success { background: var(--green); }
.toast--error { background: var(--red); }
.toast--info { background: var(--orange); }

/* ─── Loader / Spinner ─────────────────────────────── */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ─── Empty State ──────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state__text {
    font-size: 1.1rem;
}

/* ═══ Botão Flutuante WhatsApp ════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--fast);
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    display: block;
}

/* ─── Animação de pulso ──────────────────────────── */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-whatsapp 2s infinite;
    z-index: -1;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ══════════════════════════════════════════════════════
   ADMIN
   ══════════════════════════════════════════════════════ */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--text);
    color: rgba(255,255,255,0.8);
    padding: 32px 20px;
    flex-shrink: 0;
}

.admin-sidebar__logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 32px;
    display: block;
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: all var(--fast);
}

.admin-sidebar__nav a:hover,
.admin-sidebar__nav a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 32px 40px;
    background: var(--bg);
}

.admin-main h1 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-main > * {
    min-width: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
}

.admin-stat__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.admin-stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tabela admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.925rem;
}

.admin-table tr:hover td {
    background: var(--bg);
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge--novo { background: var(--orange-soft); color: var(--orange); }
.status-badge--em_andamento { background: #E8EAF6; color: #3F51B5; }
.status-badge--pronto { background: var(--green-soft); color: var(--green); }
.status-badge--entregue { background: var(--green-light); color: var(--green-dark); }
.status-badge--cancelado { background: var(--red-light); color: var(--red); }

/* ══════════════════════════════════════════════════════
   ANIMAÇÕES
   ══════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes checkmark {
    0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .builder__layout {
        grid-template-columns: 1fr;
    }

    .builder__sidebar {
        position: static;
    }

    .preview-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: center;
    }

    .preview-card > * {
        min-width: 0;
    }

    .preview-card__title {
        display: none;
    }

    .bolo-visual {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header__inner {
        height: 60px;
    }

    .header__nav a:not(.btn) {
        display: none;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero__stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .builder {
        padding-top: 76px;
        padding-bottom: 80px;
    }

    .builder__header h1 {
        font-size: 1.8rem;
    }

    .builder__action-bar {
        display: block;
    }

    .preview-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .opcoes-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .opcao-card {
        padding: 16px 12px;
    }

    .categoria-tabs {
        padding: 4px;
        margin-bottom: 20px;
    }

    .categoria-tab {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .modal {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 16px 20px;
    }

    .admin-sidebar__nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .admin-main {
        padding: 24px 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .opcoes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .opcao-card {
        padding: 12px 10px;
    }

    .opcao-card__desc {
        display: none;
    }
}
