﻿@import url("pages/cultivo-perfil.css");
@import url("pages/calculadoras-cultivo-lab.css");
@import url("pages/planejamento.css");

/* Design tokens */
:root {
    --color-bg: #1a1a1a;
    --color-bg-elevated: #2a2a2a;
    --color-surface: #111111;
    --color-text: #ffffff;
    --color-text-muted: #cccccc;
    --color-text-soft: #888888;
    --color-accent: #27ae60;
    --color-accent-dark: #219150;
    --color-accent-light: #2ecc71;
    --gradient-card: linear-gradient(145deg, #2a2a2a 0%, #333333 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
    --border-input: 1px solid rgba(255, 255, 255, 0.1);
    --space-page-x: clamp(16px, 4vw, 48px);
    --space-page-top: clamp(72px, 10vw, 96px);
    --space-section: clamp(32px, 5vw, 56px);
    --max-width-narrow: 900px;
    --max-width-wide: 1200px;
    --content-stack-width: 640px;
    --max-width-app: 720px;
    --max-width-form: var(--content-stack-width);
    --gap-grid: clamp(16px, 3vw, 24px);
    --gap-stack: clamp(16px, 2.5vw, 20px);
    --padding-header-y: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.28);
    --shadow-glow: 0 0 0 1px rgba(39, 174, 96, 0.12), 0 12px 40px rgba(39, 174, 96, 0.12);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 4px 15px rgba(39, 174, 96, 0.3);
    --gradient-accent-hover: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
    --focus-ring: 2px solid var(--color-accent);
    --header-height: 60px;
    --header-height-scrolled: 52px;
    --header-offset: var(--header-height);
    --z-main: 1;
    --z-install: 1800;
    --z-header: 2000;
    --z-nav-backdrop: 1999;
    --z-nav-dropdown: 2500;
    --z-modal: 4000;
    --z-drawer-scrim: 9400;
    --z-drawer: 9500;
    --z-admin-bar: 9999;
    --z-skip: 10000;
    --color-header-bg: rgba(8, 10, 9, 0.82);
    --color-header-border: rgba(39, 174, 96, 0.22);
    --color-warning: #f39c12;
    --color-danger: #e74c3c;
    --color-info: #3498db;
    --color-meta-bg: #222222;
    --color-border-accent: rgba(39, 174, 96, 0.3);
    --color-accent-muted: rgba(39, 174, 96, 0.1);
    --color-overlay: rgba(0, 0, 0, 0.85);
    --color-label: #d7d7d7;
    --color-admin-muted: #aaaaaa;
    --color-danger-dark: #8b2e2e;
    --color-danger-hover: #aa3333;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: var(--z-skip);
    padding: 10px 16px;
    background: var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

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

.highlight-box {
    text-align: left;
    max-width: var(--content-stack-width);
    margin: 40px auto;
}

/* Layout system — content shells, grids, scroll */
.section-inner {
    width: 100%;
    max-width: var(--max-width-wide);
    margin-inline: auto;
    padding-inline: var(--space-page-x);
}

.responsive-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.responsive-scroll > table {
    min-width: min(100%, 640px);
}

/* Listagens — largura alinhada ao resto do site */
body[data-page="equipamentos"] main.conteudo,
body[data-page="pesquisas"] main.conteudo-interno,
body[data-page="inspecoes"] main.conteudo-interno,
body[data-page="videos"] main.conteudo,
body[data-page="sorteios"] main.conteudo,
body[data-page="calculadoras"] main.conteudo,
body[data-page="loja"] main.conteudo {
    max-width: var(--max-width-wide);
}

.secao-subtitulo--spaced {
    margin-bottom: 32px;
}

.conteudo .secao-subtitulo--spaced {
    margin-bottom: 40px;
}

.category-title--spaced {
    margin-top: 48px;
}

.contact-email {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Definições Globais */
body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html {
    overflow-x: clip;
}

#main-content {
    min-width: 0;
}

* {
    box-sizing: border-box;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

#site-header,
#site-footer {
    width: 100%;
}

#site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-header-bg);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--color-header-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: min-height 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}

@media (min-width: 1025px) and (max-width: 1120px) {
    .header-profile-name {
        display: none;
    }

    .header-profile-link {
        padding: 2px;
        border-radius: 50%;
    }
}

@media (min-width: 1025px) {
    #site-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo nav utils";
        grid-template-rows: minmax(var(--header-height), auto);
        align-items: center;
        column-gap: 12px;
        padding: 12px var(--space-page-x);
        min-height: var(--header-height);
    }

    #site-header.is-scrolled {
        min-height: var(--header-height-scrolled);
        padding-top: 8px;
        padding-bottom: 8px;
        background: rgba(6, 8, 7, 0.94);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    }

    #site-header .logo {
        grid-area: logo;
        grid-row: 1;
        min-height: var(--header-height);
        display: flex;
        align-items: center;
    }

    #site-header.is-scrolled .logo {
        min-height: var(--header-height-scrolled);
    }

    #site-header .header-right {
        grid-area: utils;
        grid-row: 1;
        flex: none;
        min-width: 0;
        min-height: var(--header-height);
        justify-self: end;
        justify-content: flex-end;
        margin-left: 0;
        z-index: 2;
    }

    #site-header.is-scrolled .header-right {
        min-height: var(--header-height-scrolled);
    }

    #site-header .primary-nav {
        grid-area: nav;
        grid-row: 1;
        position: static;
        inset: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        pointer-events: auto;
        transform: none;
        visibility: visible;
        opacity: 1;
        overflow: visible;
        min-width: 0;
        z-index: auto;
    }

    #site-header .primary-nav > ul {
        pointer-events: auto;
        flex-wrap: nowrap;
        min-width: 0;
        justify-content: center;
    }

    #site-header .primary-nav > ul > li > .nav-top-link,
    #site-header .primary-nav > ul > li > .nav-dropdown-toggle {
        color: var(--color-text);
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.16);
    }

    #site-header .primary-nav > ul > li > .nav-top-link.nav-pill--cta {
        color: #fff;
        background: var(--gradient-accent);
        border-color: rgba(46, 204, 113, 0.45);
        box-shadow: none;
    }

    #site-header .primary-nav > ul > li > .nav-top-link.nav-pill--cta:hover,
    #site-header .primary-nav > ul > li > .nav-top-link.nav-pill--cta:focus-visible {
        color: #fff;
        background: var(--gradient-accent-hover);
        border-color: rgba(46, 204, 113, 0.55);
        transform: none;
        box-shadow: none;
    }

    #site-header .primary-nav > ul > li > .nav-top-link.nav-pill--cta.active,
    #site-header .primary-nav > ul > li > .nav-top-link.nav-pill--cta.is-active {
        color: #fff;
        background: var(--gradient-accent-hover);
        border-color: rgba(46, 204, 113, 0.55);
        box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.2);
    }

    #site-header .primary-nav {
        display: none !important;
    }

    #site-header .header-quick-nav {
        grid-area: nav;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 0 4px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #site-header .header-quick-nav::-webkit-scrollbar {
        display: none;
    }
}

.header-quick-nav {
    display: none;
}

.header-quick-track {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: 3px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 18px rgba(0, 0, 0, 0.18);
    gap: 2px;
}

.header-quick-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 11px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.header-quick-link-icon {
    font-size: 0.92rem;
    line-height: 1;
    flex-shrink: 0;
    filter: grayscale(0.15);
}

.header-quick-link-label {
    white-space: nowrap;
}

.header-quick-link:hover,
.header-quick-link:focus-visible {
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.header-quick-link.is-active {
    color: #e8fff0;
    background: linear-gradient(160deg, rgba(39, 174, 96, 0.32), rgba(39, 174, 96, 0.14));
    box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.35);
}

.header-quick-link.is-active .header-quick-link-icon {
    filter: none;
}

.header-quick-link--loja:hover,
.header-quick-link--loja:focus-visible {
    color: #f5d78e;
    background: rgba(230, 126, 34, 0.14);
}

.header-quick-link--loja.is-active {
    color: #fff6e0;
    background: linear-gradient(160deg, rgba(230, 126, 34, 0.38), rgba(211, 84, 0, 0.16));
    box-shadow: inset 0 0 0 1px rgba(241, 196, 15, 0.35);
}

.header-quick-link--sorteios:hover,
.header-quick-link--sorteios:focus-visible {
    color: #f5c8ff;
    background: rgba(155, 89, 182, 0.16);
}

.header-quick-link--sorteios.is-active {
    color: #fcefff;
    background: linear-gradient(160deg, rgba(155, 89, 182, 0.38), rgba(142, 68, 173, 0.16));
    box-shadow: inset 0 0 0 1px rgba(187, 143, 206, 0.4);
}

@media (min-width: 1025px) and (max-width: 1320px) {
    .header-quick-link-label {
        display: none;
    }

    .header-quick-link {
        padding: 7px 9px;
    }
}

@media (min-width: 1321px) and (max-width: 1480px) {
    .header-quick-link {
        padding: 6px 8px;
        font-size: 0.64rem;
        gap: 4px;
    }
}

@media (min-width: 1025px) and (max-width: 1180px) {
    .header-quick-link-icon {
        font-size: 0.88rem;
    }
}

html[data-theme="light"] .header-quick-track {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .header-quick-link {
    color: var(--color-text-soft);
}

html[data-theme="light"] .header-quick-link.is-active {
    color: #1e5631;
}

#main-content {
    width: 100%;
    position: relative;
    z-index: var(--z-main);
}

.primary-nav {
    display: flex;
    align-items: center;
    overflow: visible;
}

body.mobile-menu-open {
    overflow: hidden;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid rgba(39, 174, 96, 0.35);
    box-shadow: none;
    flex-shrink: 0;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.logo-link:hover .logo-mark,
.logo-link:focus-visible .logo-mark {
    box-shadow: 0 0 0 1px rgba(39, 174, 96, 0.3);
    transform: none;
}

.logo-mark-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.logo-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.logo-tagline {
    display: none;
}

.logo {
    flex-shrink: 1;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow: visible;
    position: relative;
    margin-left: auto;
}

.header-utilities {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-profile-slot {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-profile-slot:not(:empty)::before {
    content: "";
    width: 1px;
    height: 24px;
    margin: 0 2px 0 4px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.menu-toggle {
    flex-shrink: 0;
}

.header-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 168px;
    min-height: 36px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-profile-link:hover,
.header-profile-link:focus-visible {
    background: rgba(39, 174, 96, 0.16);
    outline: none;
    transform: none;
}

.header-profile-link--guest {
    padding: 8px 14px;
    min-height: 36px;
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: none;
}

.header-profile-link--guest:hover,
.header-profile-link--guest:focus-visible {
    color: #fff;
    background: var(--gradient-accent-hover);
    transform: none;
}

.header-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(39, 174, 96, 0.4);
    background: var(--color-surface);
}

.header-profile-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-icon-btn--admin {
    color: var(--color-text-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-actions:empty {
    display: none;
}

.header-actions:empty + .header-group-divider {
    display: none;
}

.header-group-divider {
    flex-shrink: 0;
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
}

.header-toolbar {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible {
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.16);
    outline: none;
}

.header-icon-btn.is-active {
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.22);
    box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.35);
}

.header-icon-btn--link {
    color: var(--color-text-muted);
}

.header-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    font-size: 1rem;
    opacity: 0.95;
}

.header-action-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.primary-nav > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Pílulas unificadas do header (navegação e conta) */
.nav-pill,
.primary-nav > ul > li > .nav-top-link,
.primary-nav > ul > li > .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.nav-dropdown-toggle {
    font: inherit;
    font-family: inherit;
    cursor: pointer;
}

.nav-pill:hover,
.primary-nav > ul > li > .nav-top-link:hover,
.primary-nav > ul > li > .nav-dropdown-toggle:hover {
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.35);
    box-shadow: none;
    transform: none;
}

.nav-pill.active:hover,
.primary-nav > ul > li > .nav-top-link.active:hover,
.primary-nav > ul > li > .nav-dropdown-toggle.active:hover,
.nav-dropdown.is-active > .nav-dropdown-toggle:hover,
.nav-dropdown.open > .nav-dropdown-toggle:hover {
    background: rgba(39, 174, 96, 0.22);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow:
        0 0 0 1px rgba(46, 204, 113, 0.2),
        0 6px 22px rgba(39, 174, 96, 0.35);
}

.nav-pill.active,
.primary-nav > ul > li > .nav-top-link.active,
.primary-nav > ul > li > .nav-dropdown-toggle.active,
.nav-dropdown.is-active > .nav-dropdown-toggle,
.nav-dropdown.open > .nav-dropdown-toggle {
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.28);
    box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.06);
}

.nav-pill--cta,
.primary-nav > ul > li > .nav-top-link.nav-pill--cta {
    color: #fff;
    background: var(--gradient-accent);
    border-color: rgba(46, 204, 113, 0.45);
    box-shadow: none;
}

.nav-pill--cta:hover,
.nav-pill--cta:focus-visible,
.primary-nav > ul > li > .nav-top-link.nav-pill--cta:hover,
.primary-nav > ul > li > .nav-top-link.nav-pill--cta:focus-visible {
    color: #fff;
    background: var(--gradient-accent-hover);
    border-color: rgba(46, 204, 113, 0.55);
    transform: none;
    box-shadow: none;
}

.nav-pill--cta.active,
.nav-pill--cta.is-active,
.primary-nav > ul > li > .nav-top-link.nav-pill--cta.active,
.primary-nav > ul > li > .nav-top-link.nav-pill--cta.is-active {
    color: #fff;
    background: var(--gradient-accent-hover);
    border-color: rgba(46, 204, 113, 0.55);
    box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.2);
}

.primary-nav > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-dropdown {
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.nav-caret svg {
    display: block;
}

.nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

@media (min-width: 1025px) {
    .nav-dropdown:hover .nav-caret,
    .nav-dropdown:focus-within .nav-caret {
        transform: rotate(180deg);
    }
}

.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 260px;
    background: rgba(10, 12, 11, 0.97);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.15),
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s;
    z-index: var(--z-nav-dropdown);
}

.nav-submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-mega-panel {
    width: min(560px, calc(100vw - 32px));
    min-width: min(520px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    left: auto;
    right: 0;
    transform: translateY(10px) scale(0.98);
    transform-origin: top right;
    flex-wrap: unset;
    justify-content: stretch;
    align-items: stretch;
    text-align: left;
}

.nav-mega-panel--compact {
    width: min(380px, calc(100vw - 32px));
    min-width: min(320px, calc(100vw - 32px));
    grid-template-columns: 1fr;
}

.nav-mega-panel--wide {
    width: min(680px, calc(100vw - 32px));
    min-width: min(640px, calc(100vw - 32px));
}

/* Mega menu — grelha de tiles (Ferramentas, Biblioteca, Guia, etc.) */
.nav-mega-panel--tools {
    width: min(420px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 14px 14px;
}

.nav-mega-panel--tools .nav-panel-header {
    gap: 2px;
    padding: 0 4px 10px;
    margin-bottom: 8px;
    align-items: center;
    text-align: center;
}

.nav-mega-panel--tools .nav-panel-subtitle {
    font-size: 0.78rem;
    line-height: 1.3;
    text-align: center;
}

/* Mega menu — lista em acordeão (Biblioteca, Ferramentas) */
.nav-mega-panel--accordion {
    width: min(300px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 12px 12px;
}

.nav-mega-panel--accordion .nav-panel-header {
    padding: 0 2px 8px;
    margin-bottom: 6px;
}

.nav-accordion-wrap {
    list-style: none;
    margin: 0;
    padding: 0;
    grid-column: 1 / -1;
    width: 100%;
}

.nav-accordion-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.nav-accordion-item {
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-accordion-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-label);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.nav-accordion-link:hover,
.nav-accordion-link:focus-visible {
    border-color: rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.08);
    outline: none;
}

.nav-accordion-link.is-active {
    border-color: rgba(39, 174, 96, 0.45);
    background: rgba(39, 174, 96, 0.14);
    color: var(--color-accent-light);
}

.nav-accordion-icon {
    flex-shrink: 0;
    width: 1.35rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
}

.nav-accordion-label {
    flex: 1;
    text-align: left;
    line-height: 1.25;
}

.nav-tile-submenu--accordion {
    width: 100%;
}

.nav-tile-submenu-toggle--accordion {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
    border-radius: 10px;
}

.nav-tile-submenu--accordion .nav-app-tile-icon-wrap {
    width: 28px;
    height: 28px;
    margin: 0;
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-tile-submenu--accordion .nav-app-tile-icon {
    font-size: 0.95rem;
}

.nav-tile-submenu--accordion .nav-tile-submenu-label {
    flex: 1;
    text-align: left;
    font-size: 0.88rem;
}

.nav-tile-submenu--accordion .nav-tile-submenu-chevron {
    margin-left: auto;
    flex-shrink: 0;
}

.nav-app-tiles--nested-accordion {
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 4px 0 2px;
    padding: 4px 0 4px 10px;
    border-left: 2px solid rgba(39, 174, 96, 0.22);
    width: 100%;
    box-sizing: border-box;
}

.nav-tile-submenu--accordion.open .nav-app-tiles--nested-accordion {
    display: flex;
    flex-direction: column;
}

.nav-app-tiles--nested-accordion > .nav-accordion-item,
.nav-app-tiles--nested-accordion > .nav-tile-submenu {
    width: 100%;
}

.nav-app-tiles--nested-accordion .nav-accordion-link {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.84rem;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.12);
}

.nav-app-tiles--nested-accordion .nav-tile-submenu-toggle--accordion {
    min-height: 38px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.12);
}

.nav-app-tiles--nested-accordion .nav-app-tiles--nested-accordion {
    margin-left: 8px;
    padding-left: 8px;
}

.nav-app-tiles-wrap {
    list-style: none;
    margin: 0;
    padding: 0;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.nav-mega-panel--tools .nav-app-tiles-wrap {
    padding: 0;
}

.nav-app-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

@media (max-width: 380px) {
    .nav-mega-panel--tools .nav-app-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nav-app-tiles > li {
    margin: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.nav-tile-submenu {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

.nav-tile-submenu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 84px;
    padding: 10px 8px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
    color: var(--color-label);
    cursor: pointer;
    font: inherit;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.15s, transform 0.15s;
}

.nav-tile-submenu-toggle:hover,
.nav-tile-submenu-toggle:focus-visible,
.nav-tile-submenu.open .nav-tile-submenu-toggle {
    border-color: rgba(39, 174, 96, 0.45);
    outline: none;
}

.nav-tile-submenu-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
}

.nav-tile-submenu-chevron {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.15s;
}

.nav-tile-submenu.open .nav-tile-submenu-chevron {
    transform: rotate(180deg);
}

.nav-app-tiles--nested {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    width: 100%;
}

.nav-tile-submenu.open .nav-app-tiles--nested {
    display: grid;
}

.nav-app-tiles--nested > li {
    display: flex;
}

.nav-app-tile {
    --tile-icon-bg: rgba(39, 174, 96, 0.18);
    --tile-icon-border: rgba(39, 174, 96, 0.28);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 84px;
    padding: 10px 8px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
    color: var(--color-label);
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.15s, transform 0.15s;
}

.nav-app-tile:hover,
.nav-app-tile:focus-visible {
    border-color: rgba(39, 174, 96, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.nav-app-tile--featured {
    border-color: rgba(39, 174, 96, 0.35);
}

.nav-app-tile-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-inline: auto;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--tile-icon-bg), rgba(0, 0, 0, 0.08));
    border: 1px solid var(--tile-icon-border);
}

.nav-app-tile-icon {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    text-align: center;
}

.nav-app-tile-label {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--color-label);
}

.nav-app-tile--luximetro { --tile-icon-bg: rgba(255, 193, 7, 0.22); --tile-icon-border: rgba(255, 193, 7, 0.35); }
.nav-app-tile--vpd { --tile-icon-bg: rgba(52, 152, 219, 0.22); --tile-icon-border: rgba(52, 152, 219, 0.35); }
.nav-app-tile--dli { --tile-icon-bg: rgba(243, 156, 18, 0.24); --tile-icon-border: rgba(243, 156, 18, 0.38); }
.nav-app-tile--super-solo { --tile-icon-bg: rgba(139, 90, 43, 0.28); --tile-icon-border: rgba(139, 90, 43, 0.4); }
.nav-app-tile--volume-vaso { --tile-icon-bg: rgba(149, 165, 166, 0.22); --tile-icon-border: rgba(149, 165, 166, 0.35); }
.nav-app-tile--ec { --tile-icon-bg: rgba(41, 128, 185, 0.24); --tile-icon-border: rgba(41, 128, 185, 0.38); }
.nav-app-tile--diluicao { --tile-icon-bg: rgba(155, 89, 182, 0.22); --tile-icon-border: rgba(155, 89, 182, 0.35); }
.nav-app-tile--ph { --tile-icon-bg: rgba(46, 204, 113, 0.22); --tile-icon-border: rgba(46, 204, 113, 0.35); }
.nav-app-tile--energia { --tile-icon-bg: rgba(241, 196, 15, 0.24); --tile-icon-border: rgba(241, 196, 15, 0.38); }
.nav-app-tile--watts-m2 { --tile-icon-bg: rgba(230, 126, 34, 0.24); --tile-icon-border: rgba(230, 126, 34, 0.38); }
.nav-app-tile--guia-cultivo { --tile-icon-bg: rgba(46, 204, 113, 0.22); --tile-icon-border: rgba(46, 204, 113, 0.38); }
.nav-app-tile--videos { --tile-icon-bg: rgba(231, 76, 60, 0.22); --tile-icon-border: rgba(231, 76, 60, 0.35); }
.nav-app-tile--pesquisas { --tile-icon-bg: rgba(52, 152, 219, 0.22); --tile-icon-border: rgba(52, 152, 219, 0.35); }
.nav-app-tile--inspecoes { --tile-icon-bg: rgba(149, 165, 166, 0.24); --tile-icon-border: rgba(149, 165, 166, 0.38); }
.nav-app-tile--equipamentos { --tile-icon-bg: rgba(139, 90, 43, 0.26); --tile-icon-border: rgba(139, 90, 43, 0.4); }
.nav-app-tile--sorteios { --tile-icon-bg: rgba(241, 196, 15, 0.24); --tile-icon-border: rgba(241, 196, 15, 0.38); }
.nav-app-tile--manual-clonadora { --tile-icon-bg: rgba(155, 89, 182, 0.22); --tile-icon-border: rgba(155, 89, 182, 0.35); }
.nav-app-tile--clonadora-6 { --tile-icon-bg: rgba(46, 204, 113, 0.2); --tile-icon-border: rgba(46, 204, 113, 0.35); }
.nav-app-tile--clonadora-12 { --tile-icon-bg: rgba(52, 152, 219, 0.2); --tile-icon-border: rgba(52, 152, 219, 0.35); }
.nav-app-tile--clonadoras { --tile-icon-bg: rgba(46, 204, 113, 0.18); --tile-icon-border: rgba(46, 204, 113, 0.32); }
.nav-app-tile--calculadoras { --tile-icon-bg: rgba(39, 174, 96, 0.22); --tile-icon-border: rgba(39, 174, 96, 0.35); }

.nav-mega-panel--tools .nav-rich-link {
    min-height: 0;
    padding: 7px 10px !important;
    gap: 8px;
    border-radius: 8px !important;
}

.nav-mega-panel--tools .nav-item-icon {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
    border-radius: 8px;
}

.nav-mega-panel--tools .nav-item-label {
    font-size: 0.84rem;
    line-height: 1.25;
}

.nav-mega-panel--tools .nav-item-desc {
    display: none;
}

.nav-mega-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 6px 4px;
    margin: 0;
    list-style: none;
}

.nav-mega-panel--tools .nav-mega-group:first-of-type {
    padding-top: 4px;
}

.nav-mega-group + .nav-app-tiles-wrap {
    margin-top: 0;
}

.nav-mega-group + li > .nav-rich-link {
    margin-top: 0;
}

.nav-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.nav-group-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    line-height: 1.35;
}

/* Não herdar flex da barra principal — senão os cards colapsam uns sobre os outros */
.primary-nav .nav-mega-panel {
    display: grid;
}

.nav-mega-panel > li {
    display: block;
    width: 100%;
    min-width: 0;
}

.nav-dropdown-mega .nav-submenu {
    left: auto;
    right: 0;
}

.nav-dropdown-mega:first-child .nav-mega-panel {
    left: 0;
    right: auto;
    transform-origin: top left;
}

.nav-panel-header {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 2px 6px 12px;
    margin: 0 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.nav-panel-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    line-height: 1.35;
}

.nav-panel-title-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-panel-title-link:hover,
.nav-panel-title-link:focus-visible {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nav-panel-subtitle {
    display: block;
    margin-top: 0;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.45;
    max-width: 42ch;
}

.nav-mega-feature {
    grid-column: 1 / -1;
}

.nav-submenu > li {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
}

.nav-recent-group {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.nav-recent-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-soft);
    margin: 0 0 6px 4px;
}

.nav-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-recent-link {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.35;
}

.nav-recent-link:hover,
.nav-recent-link:focus-visible {
    color: var(--color-accent-light);
    background: rgba(255, 255, 255, 0.05);
}

.nav-rich-link--featured {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.16) 0%, rgba(39, 174, 96, 0.06) 100%) !important;
    border: 1px solid rgba(39, 174, 96, 0.28) !important;
}

.nav-item-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    padding: 2px 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.2);
    border-radius: 999px;
    flex-shrink: 0;
}

.nav-item-label-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-rich-link {
    position: relative;
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 72px;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    white-space: normal !important;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.nav-rich-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.nav-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-item-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.nav-item-label {
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.nav-item-desc {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.nav-rich-link:hover .nav-item-label {
    color: var(--color-accent-light);
}

.nav-rich-link.active {
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.14);
    border-color: var(--color-border-accent);
    box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.08);
}

.nav-submenu a:not(.nav-rich-link):not(.nav-app-tile) {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-submenu a.nav-app-tile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: var(--color-label);
}

.nav-submenu a:not(.nav-rich-link):not(.nav-app-tile):hover,
.nav-submenu a:not(.nav-rich-link):not(.nav-app-tile).active {
    color: var(--color-accent-light);
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 1025px) {
    .nav-dropdown:hover .nav-submenu,
    .nav-dropdown:focus-within .nav-submenu,
    .nav-dropdown.open .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-dropdown-mega:hover .nav-mega-panel,
    .nav-dropdown-mega:focus-within .nav-mega-panel,
    .nav-dropdown-mega.open .nav-mega-panel {
        transform: translateY(0) scale(1);
    }

    .nav-dropdown-mega:first-child:hover .nav-mega-panel,
    .nav-dropdown-mega:first-child:focus-within .nav-mega-panel,
    .nav-dropdown-mega:first-child.open .nav-mega-panel {
        transform: translateY(0) scale(1);
    }

    .nav-dropdown:hover .nav-submenu:not(.nav-mega-panel),
    .nav-dropdown:focus-within .nav-submenu:not(.nav-mega-panel),
    .nav-dropdown.open .nav-submenu:not(.nav-mega-panel) {
        transform: translateY(0) scale(1);
    }

    .nav-submenu,
    .nav-mega-panel {
        z-index: calc(var(--z-modal) + 12);
    }
}

body[data-page="admin"] .conteudo-interno {
    --space-page-top: clamp(24px, 4vw, 40px);
}

/* Admin: menu fixo por cima; conteúdo rola por trás */
body[data-page="admin"] #site-header,
body[data-page="sorteios-admin"] #site-header {
    position: sticky;
    top: 0;
    z-index: calc(var(--z-modal) + 30);
    isolation: isolate;
    background: rgba(6, 8, 7, 0.98);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

body[data-page="admin"] .admin-panel,
body[data-page="sorteios-admin"] .admin-panel {
    position: relative;
    z-index: 0;
}

body[data-page="admin"] .admin-studio-table-wrap {
    overflow: visible;
}

body[data-page="admin"] .admin-studio-row {
    z-index: auto;
}

.header-auth {
    flex-shrink: 0;
}

.header-auth--cta {
    color: #fff;
    background: var(--gradient-accent);
    border-color: rgba(46, 204, 113, 0.45);
    box-shadow: var(--shadow-accent);
}

.header-auth--cta:hover {
    color: #fff;
    background: var(--gradient-accent-hover);
    border-color: rgba(46, 204, 113, 0.55);
}

.header-admin {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding-inline: 12px;
    opacity: 0.92;
}

/* legacy — mantido para páginas antigas */
.header-right .nav-user-link {
    max-width: 160px;
}

.header-right .nav-user-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Seção Hero (Apenas na Home) */
.hero {
    background-image: url('../imagens/background-hero.svg');
    background-size: cover;
    background-position: center;
    min-height: min(52vh, 480px);
    min-height: min(52dvh, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-page-top) var(--space-page-x) var(--space-section);
}

body[data-page="home"] .hero {
    min-height: auto;
    padding: clamp(28px, 4vw, 40px) var(--space-page-x) clamp(22px, 3vw, 32px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width-app);
    width: 100%;
    margin-inline: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: none;
}

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

/* Ajuste de posição e espaçamento do conteúdo da hero */
.hero-content h1 {
    color: #ffffff;
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.15;
}

body[data-page="home"] .hero-content h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}

.hero-content p {
    color: #ffffff;
    margin: 0 0 28px;
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.5;
}

body[data-page="home"] .hero-content p:not(.hero-eyebrow) {
    margin: 0;
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    line-height: 1.4;
}

.hero-content p:not(.hero-eyebrow) {
    max-width: 36rem;
}

.hero-eyebrow {
    display: none;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: min(900px, 100%);
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .hero-actions {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.hero-actions--secondary {
    margin-top: 10px;
    grid-template-columns: 1fr;
    max-width: 220px;
}

@media (min-width: 640px) {
    .hero-actions--secondary {
        max-width: 240px;
    }
}

body[data-page="home"] .hero-actions--secondary .botao-home {
    width: 100%;
}

/* Conteúdo de páginas */
.conteudo,
.conteudo-interno,
.relatorio-container {
    padding: var(--space-page-top) var(--space-page-x) var(--space-section);
    margin: 0 auto;
    width: 100%;
}

.conteudo {
    max-width: var(--max-width-narrow);
}

/* Coluna única centrada para blocos empilhados (sorteios, info, login) */
.page-stack {
    width: 100%;
    max-width: var(--max-width-form);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-stack);
}

.page-stack > * {
    margin-block: 0;
}

.page-stack .highlight,
.page-stack .highlight-box,
.page-stack .sorteios-current,
.page-stack .sorteios-notice {
    margin: 0;
}

.page-stack .highlight-box {
    max-width: none;
}

.page-stack .page-intro,
.page-stack .secao-subtitulo {
    max-width: none;
}

.page-stack .page-intro {
    margin-bottom: 0;
}

.page-stack .contact-faq {
    max-width: none;
    margin-inline: 0;
    margin-top: 0;
}

.page-stack .contact-grid {
    margin-top: 0;
}

.page-stack .section-grid {
    gap: 16px;
}

.page-stack .section-cta-inline {
    margin-top: 0;
}

.conteudo-interno {
    max-width: var(--max-width-wide);
}

.conteudo h1,
.conteudo-interno h1,
#main-content > h1:first-child {
    color: var(--color-accent);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 16px;
}

.conteudo-interno .secao-subtitulo,
.conteudo .secao-subtitulo {
    margin-top: 0;
}

nav ul li a:focus,
.nav-dropdown-toggle:focus,
.botao:focus,
.menu-toggle:focus,
.calculator button:focus {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

/* Superfícies e cards reutilizáveis */
.surface-card,
.item-lista,
.card,
.reference-table,
.modal-card {
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: var(--border-subtle);
}

.item-lista {
    padding: clamp(18px, 3vw, 25px);
    margin-bottom: clamp(16px, 3vw, 25px);
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 25px);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    border-radius: var(--radius-lg);
}

.item-lista:hover {
    border-color: rgba(39, 174, 96, 0.2);
}

.item-lista img {
    width: min(200px, 100%);
    max-width: 200px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.item-lista:hover img {
    transform: none;
}

.botao,
.calculator button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-accent);
    cursor: pointer;
    border: none;
}

.botao:hover,
.calculator button:hover {
    background: var(--gradient-accent-hover);
    border-color: rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(46, 204, 113, 0.15),
        0 8px 28px rgba(39, 174, 96, 0.45);
}

.calculator button {
    min-width: 140px;
}

/* Estilos para Pesquisas / listagens */
.container-cards--single {
    max-width: var(--max-width-narrow);
}

.container-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-grid);
    margin-top: clamp(24px, 4vw, 40px);
}

@media (min-width: 640px) {
    .container-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .container-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card {
    padding: clamp(16px, 2.5vw, 24px);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border-radius: var(--radius-lg);
}

.card.post-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

.card.post-card > a:not(.post-card-edit-btn) {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(18px, 3vw, 24px);
    text-decoration: none;
    color: inherit;
}

.card:hover {
    border-color: rgba(39, 174, 96, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-glow);
    }

    .item-lista:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-soft);
        border-color: rgba(39, 174, 96, 0.25);
    }

    .item-lista:hover img {
        transform: scale(1.03);
    }
}

.highlight-card {
    border: 1px solid rgba(39, 174, 96, 0.3);
    background: linear-gradient(145deg, #1e3a2a 0%, #2a2a2a 40%);
}

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

.section-center p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.info-box {
    text-align: left;
    max-width: 600px;
    margin: 40px auto;
}

.page-title-tight {
    margin-bottom: 5px;
}

.section-subtitle-tight {
    margin-bottom: 25px;
}

.hidden {
    display: none;
}

.btn-inline {
    display: inline-block;
    text-align: center;
}

.btn-inline-spaced {
    margin-left: 8px;
}

.calc-guia-link {
    margin: -8px 0 20px;
}

.select-dark,
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-form input,
.calculator input,
.calculator select,
.calculator textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: var(--border-input);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1rem;
}

.select-dark:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.login-form input:focus,
.calculator input:focus,
.calculator select:focus,
.calculator textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.12);
}

.calculator input,
.calculator select,
.calculator textarea {
    margin-bottom: 0;
}

.calculator input::placeholder {
    color: var(--color-text-soft);
}

.select-dark {
    background: var(--color-bg);
}

.select-dark-spaced {
    margin-bottom: 15px;
}

.field-label {
    display: block;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.panel-hidden {
    display: none;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-overlay);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    padding: 30px;
    max-width: 400px;
    width: 100%;
    border-color: var(--color-border-accent);
}

.result-box {
    background: var(--color-accent-muted);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-sm);
    padding: clamp(14px, 3vw, 20px);
    margin-top: 20px;
    text-align: center;
}

.result-title {
    color: var(--color-accent);
    margin-bottom: 15px;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-list-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.result-primary {
    color: var(--color-accent);
    font-weight: 600;
}

.result-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(20px, 4vw, 32px);
    align-items: start;
}

.admin-form {
    min-width: 0;
}

.admin-sidebar {
    width: 100%;
    min-width: 0;
}

.admin-form label {
    display: block;
    margin-bottom: 12px;
    color: var(--color-label);
}

.login-form label {
    display: block;
    margin-bottom: 14px;
    color: var(--color-label);
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.login-form input {
    margin-top: 6px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.admin-secondary {
    background: var(--color-bg-elevated) !important;
}

.admin-result {
    margin-top: 20px;
    color: var(--color-text-muted);
}

.panel-dark,
.admin-preview,
.admin-posts-list {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

.admin-preview {
    padding: 15px;
    min-height: 200px;
    overflow: auto;
}

.admin-posts-list {
    padding: 10px;
    max-height: min(50vh, 420px);
    overflow: auto;
}

.admin-post-item {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.admin-post-meta {
    font-size: 0.85em;
    color: var(--color-text-soft);
}

.admin-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.admin-post-actions .botao {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    max-width: var(--max-width-wide);
    margin-left: auto;
    margin-right: auto;
}

.admin-topbar--slim {
    margin-bottom: 12px;
}

.admin-topbar--slim h1 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

/* Hub admin — publicações e sorteios */
.admin-hub-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    max-width: var(--max-width-wide);
    margin: 0 auto 16px;
}

.admin-hub-eyebrow {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.admin-hub-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
}

.admin-hub-sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.admin-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: var(--max-width-wide);
    margin: 0 auto 20px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.14);
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-nav-link:hover {
    color: var(--color-accent-light);
    border-color: rgba(39, 174, 96, 0.4);
}

.admin-nav-link.is-active {
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.14);
    border-color: rgba(39, 174, 96, 0.4);
}

html[data-theme="light"] .admin-nav-link {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .admin-stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

.admin-stat-card--live {
    border-color: rgba(39, 174, 96, 0.35);
    background: rgba(39, 174, 96, 0.08);
}

.admin-stat-card--draft {
    border-color: rgba(243, 156, 18, 0.35);
    background: rgba(243, 156, 18, 0.08);
}

.admin-stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
}

.admin-stat-value--sm {
    font-size: 1.05rem;
    font-weight: 600;
}

.admin-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-soft);
}

.admin-toolbar-hint {
    margin: -8px 0 16px;
    font-size: 0.8rem;
    color: var(--color-text-soft);
}

.admin-toolbar-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    font-family: inherit;
}

.admin-editor-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-editor-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.35);
    color: var(--color-accent-light);
}

.admin-editor-badge--edit {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.35);
    color: #85c1e9;
}

.admin-sidebar-block--sticky {
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.admin-video summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
    list-style: none;
}

.admin-video summary::-webkit-details-marker {
    display: none;
}

.admin-video[open] summary {
    margin-bottom: 14px;
}

.admin-help {
    max-width: var(--max-width-wide);
    margin: 0 auto 20px;
    color: var(--color-admin-muted);
    font-size: 0.9rem;
}

.admin-help summary {
    cursor: pointer;
    color: var(--color-accent);
    user-select: none;
    list-style: none;
}

.admin-help summary::-webkit-details-marker {
    display: none;
}

.admin-help[open] summary {
    margin-bottom: 8px;
}

.admin-help--inline {
    max-width: none;
    margin: 0 0 16px;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-label {
    color: var(--color-admin-muted);
    font-size: 0.95rem;
}

.admin-danger {
    background: var(--color-danger-dark) !important;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.admin-danger:hover {
    background: var(--color-danger-hover) !important;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
}

.login-box {
    width: 100%;
    max-width: var(--content-stack-width);
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 32px;
    margin-top: 40px;
}

.login-box h1 {
    margin-top: 0;
}

.login-subtitle {
    color: var(--color-admin-muted);
    margin-bottom: 24px;
}

.login-submit {
    width: 100%;
    margin-top: 8px;
}

.login-google-section {
    margin-top: 8px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: var(--color-text-soft);
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .login-divider::before,
html[data-theme="light"] .login-divider::after {
    background: rgba(0, 0, 0, 0.12);
}

.login-error {
    margin-top: 16px;
    color: var(--color-danger);
    min-height: 1.2em;
}

.login-notice {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #f0d0cc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.login-notice p {
    margin: 0 0 10px;
}

.login-notice p:last-child {
    margin-bottom: 0;
}

.login-notice code {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}

.login-notice-steps {
    margin: 12px 0 0;
    padding-left: 1.2rem;
    line-height: 1.55;
}

.login-notice-steps li + li {
    margin-top: 10px;
}

.sorteios-page {
    /* usa .conteudo + .page-stack para largura dos blocos */
}

.sorteios-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sorteios-panel-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sorteios-panel {
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.95) 0%, rgba(33, 33, 33, 0.98) 100%);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: clamp(20px, 4vw, 28px);
    box-shadow: var(--shadow-card);
}

.sorteios-panel--info {
    margin: 0;
}

.sorteios-panel-title,
.sorteios-form-title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-accent);
    font-size: 1.2rem;
    line-height: 1.3;
}

.sorteios-info-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.sorteios-info-list li + li {
    margin-top: 10px;
}

.sorteios-info h2 {
    margin-top: 0;
    color: var(--color-accent);
}

.sorteios-form {
    margin: 0;
}

.sorteios-form-title {
    margin: 0 0 20px;
}

.sorteios-current {
    margin: 0;
}

.sorteios-panel.sorteios-notice {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.25);
    box-shadow: none;
}

.sorteios-current-badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.18);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.sorteios-current-title {
    margin: 0 0 12px;
    color: var(--color-accent);
    font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.sorteios-current-desc {
    margin: 0 0 12px;
    color: #ddd;
    line-height: 1.7;
}

.sorteios-current-prize {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.6;
}

.sorteios-current-date {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sorteios-current-manual {
    margin: 16px 0 0;
}

.sorteios-google-wrap,
.sorteios-panel-block {
    min-width: 0;
}

.sorteios-google-help {
    margin: 0 0 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.sorteios-google-actions {
    margin: 0 0 20px;
}

.sorteios-google-embed-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: var(--border-subtle);
    background: #fff;
}

.sorteios-google-embed {
    display: block;
    width: 100%;
    min-height: 640px;
    border: 0;
}

.sorteios-intro {
    margin-bottom: 0;
}

.sorteios-field,
.sorteios-form label.sorteios-field {
    display: block;
    margin-bottom: 16px;
    color: #ccc;
    font-weight: 500;
}

.sorteios-field input,
.sorteios-field select {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font: inherit;
    box-sizing: border-box;
}

.sorteios-field input:focus,
.sorteios-field select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.sorteios-field-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
}

.field-optional {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.sorteios-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 20px;
    color: #bbb;
    font-weight: 400;
    line-height: 1.5;
}

.sorteios-checkbox span a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.sorteios-checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.info-list a {
    color: var(--color-accent);
    text-decoration: none;
}

.info-list a:hover {
    text-decoration: underline;
}

.sorteios-submit {
    width: 100%;
}

.sorteios-message {
    margin-top: 16px;
    min-height: 1.2em;
    color: var(--color-text-muted);
}

.sorteios-message.is-success {
    color: var(--color-accent);
}

.sorteios-message.is-error {
    color: var(--color-danger);
}

.sorteios-notice {
    padding: 16px;
    color: #ddd;
}

.sorteios-notice code {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
}

.sorteios-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sorteios-admin-count {
    margin: 0;
    color: var(--color-admin-muted);
}

.sorteios-admin-table-wrap {
    overflow-x: auto;
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
}

.sorteios-admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.sorteios-admin-table th,
.sorteios-admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.sorteios-admin-table th {
    color: var(--color-accent);
    background: rgba(39, 174, 96, 0.08);
}

.sorteios-delete-btn {
    white-space: nowrap;
}

.usuarios-admin-identity {
    margin-bottom: 20px;
}

.usuarios-admin-identity-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.usuarios-admin-name {
    margin: 0 0 6px;
}

.usuarios-admin-usercell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usuarios-admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}

.usuarios-admin-avatar--lg {
    width: 72px;
    height: 72px;
}

.usuarios-admin-avatar--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-admin-muted);
    font-weight: 600;
}

.usuarios-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.usuarios-admin-card {
    margin-bottom: 16px;
}

.usuarios-admin-dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.usuarios-admin-dl dt {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    margin: 0;
}

.usuarios-admin-dl dd {
    margin: 2px 0 0;
    color: var(--color-text);
}
}

.sorteios-config-panel {
    margin-bottom: 28px;
}

.sorteios-config-form textarea {
    width: 100%;
    min-height: 110px;
    margin-top: 8px;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.sorteios-config-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.sorteios-config-active {
    margin-bottom: 16px;
}

.sorteios-config-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Admin sorteios — abas, prémios, pré-visualização */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-header-border);
}

.admin-tab {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-tab:hover {
    color: var(--color-accent-light);
    border-color: rgba(39, 174, 96, 0.35);
}

.admin-tab.is-active {
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.4);
}

.admin-tab-panel[hidden] {
    display: none !important;
}

.sorteios-admin-publish-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.sorteio-status-fieldset {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.admin-field-legend {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent);
}

.sorteio-status-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.sorteio-status-option:last-child {
    margin-bottom: 0;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--color-text-soft);
    line-height: 1.4;
}

.sorteio-premios-block {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.15);
}

.sorteio-premios-head {
    margin-bottom: 12px;
}

.sorteio-premios-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.sorteio-premio-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.sorteio-premio-label-field {
    display: block;
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.sorteio-premio-label-field input {
    width: 100%;
    margin-top: 6px;
}

.sorteio-premio-remove {
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.sorteio-admin-preview {
    position: sticky;
    top: 80px;
}

.sorteio-preview-title {
    margin: 0 0 10px;
    color: var(--color-accent);
    font-size: 1.15rem;
    line-height: 1.3;
}

.sorteio-preview-desc,
.sorteio-preview-prize,
.sorteio-preview-date {
    margin: 0 0 10px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.sorteio-status-pill--aberto {
    background: rgba(39, 174, 96, 0.2);
    color: var(--color-accent-light);
}

.sorteio-status-pill--em-breve {
    background: rgba(243, 156, 18, 0.15);
    color: #f5b041;
}

.sorteio-status-pill--encerrado {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.sorteio-table-date {
    white-space: nowrap;
    font-size: 0.88rem;
    color: var(--color-text-soft);
}

.sorteio-broadcast-panel {
    margin-bottom: 20px;
}

.sorteio-broadcast-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.sorteio-broadcast-actions .sorteios-message {
    margin: 0;
}

.sorteios-current-date time,
.sorteio-preview-date {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .sorteios-admin-publish-grid {
        grid-template-columns: 1fr;
    }

    .sorteio-admin-preview {
        position: static;
    }
}

/* Guia de Cultivo Básico */
.guia-cultivo-page {
    max-width: var(--max-width-wide);
    margin-inline: auto;
    padding-top: clamp(28px, 5vw, 44px);
}

.guia-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guia-header h1 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.15;
    margin: 0 0 6px;
}

.guia-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--color-accent-muted);
    border: 1px solid var(--color-border-accent);
    color: var(--color-accent-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.guia-subtitle {
    max-width: 520px;
    margin: 0 auto;
    font-size: 0.92rem;
    line-height: 1.45;
}

.guia-channel-link {
    margin-top: 10px;
    font-size: 0.88rem;
}

.guia-channel-link a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.guia-channel-link a:hover {
    text-decoration: underline;
}

.guia-sidebar-groups {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guia-sidebar-group {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.guia-sidebar-group:last-child {
    margin-bottom: 0;
}

.guia-sidebar-group-title {
    display: block;
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent-light);
}

.guia-sidebar-group ul {
    margin: 0;
    padding-left: 1.1rem;
}

.guia-sidebar-group li + li {
    margin-top: 6px;
}

.guia-toc {
    margin-bottom: 48px;
    padding: 24px 28px;
}

.guia-toc-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--color-accent);
}

.guia-toc-hint {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: var(--color-text-soft);
    line-height: 1.35;
}

.guia-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 8px;
    list-style: decimal;
}

.guia-toc-list a {
    position: relative;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.guia-toc-list a:hover {
    color: var(--color-accent);
}

.guia-chapters {
    display: flex;
    flex-direction: column;
    gap: 56px;
    counter-reset: guia-chapter;
}

.guia-chapter {
    counter-increment: guia-chapter;
}

.guia-chapter h2::before {
    content: counter(guia-chapter) ". ";
}

.guia-chapter h2 {
    color: var(--color-accent);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin-bottom: 12px;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.guia-chapter-desc {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: var(--max-width-app);
}

.guia-video-card {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: var(--border-subtle);
}

.guia-video-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.guia-video-title {
    margin: 0;
    font-size: 1.15rem;
    flex: 1;
    min-width: 0;
}

.guia-video-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.guia-title-edit-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(39, 174, 96, 0.35);
    border-radius: 50%;
    background: rgba(10, 12, 11, 0.85);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.guia-title-edit-btn:hover {
    background: var(--color-accent);
}

.guia-title-edit-input {
    flex: 1 1 220px;
    min-width: 0;
    margin: 0;
}

.guia-title-save-btn,
.guia-title-cancel-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
}

.guia-title-edit-msg {
    flex: 1 1 100%;
    font-size: 0.82rem;
    color: var(--color-accent);
}

.guia-title-edit-msg.is-error {
    color: var(--color-danger);
}

.guia-video-summary {
    margin: 0 0 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.guia-cultivo-page .video-embed {
    position: relative;
    width: 100%;
    margin: 0 0 12px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-card);
}

.guia-cultivo-page .video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.guia-video-meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-text-soft);
}

.guia-video-meta a {
    color: var(--color-accent);
    text-decoration: none;
}

.guia-video-meta a:hover {
    text-decoration: underline;
}

.guia-tools {
    margin-top: 56px;
    padding: 28px;
}

.guia-tools h2 {
    margin-top: 0;
    color: var(--color-accent);
}

.empty-message {
    color: var(--color-text-muted);
}

.admin-section-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    color: #fff;
}

.admin-field-full {
    display: block;
    width: 100%;
}

.admin-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-end;
}

.admin-field-row label {
    flex: 1;
    min-width: 180px;
}

.admin-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

.admin-upload-label input[type="file"] {
    margin-top: 8px;
}

.admin-upload {
    margin-bottom: 16px;
}

.admin-upload-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cover-preview-wrap {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: var(--border-input);
    background: rgba(255, 255, 255, 0.03);
}

.cover-preview-wrap img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.admin-secondary--small {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
}

.admin-video {
    margin-bottom: 20px;
}

.admin-video--primary {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(39, 174, 96, 0.25);
    background: rgba(39, 174, 96, 0.06);
}

.admin-block-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: var(--color-accent);
}

.admin-steps {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.admin-steps a {
    color: var(--color-accent);
    font-weight: 600;
}

.admin-video label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-label);
}

.admin-video .select-dark {
    flex: 1 1 280px;
    min-width: 0;
}

.post-content .video-embed,
.admin-preview .video-embed {
    position: relative;
    width: 100%;
    margin: 24px 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-card);
}

.post-content .video-embed iframe,
.admin-preview .video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-error {
    color: var(--color-danger);
    font-size: 0.95rem;
}

.admin-sidebar-block {
    margin-bottom: 28px;
}

.admin-sidebar-block:last-child {
    margin-bottom: 0;
}

.admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-sidebar-head h3 {
    margin: 0;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.2);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-post-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #bbb;
    font-size: 0.75rem;
}

.admin-tag-draft {
    background: rgba(231, 76, 60, 0.15);
    color: var(--color-danger);
}

.admin-post-excerpt {
    margin: 0 0 8px;
    color: var(--color-admin-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.admin-post-item.is-active {
    border-color: var(--color-accent);
    background: rgba(39, 174, 96, 0.08);
}

/* Painel estilo YouTube Studio */
.admin-studio {
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.admin-studio-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-studio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    min-width: 240px;
}

.admin-studio-search {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.admin-studio-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-studio-table-wrap {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: var(--border-subtle);
    overflow: hidden;
}

.admin-studio-table {
    display: flex;
    flex-direction: column;
}

.admin-studio-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 120px 100px 110px auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease;
}

.admin-studio-row:last-child {
    border-bottom: none;
}

.admin-studio-row:not(.admin-studio-row--head):hover {
    background: rgba(255, 255, 255, 0.04);
}

.admin-studio-row.is-active {
    background: rgba(39, 174, 96, 0.08);
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.admin-studio-row--head {
    cursor: default;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-soft);
}

.admin-studio-row--head:hover {
    background: rgba(0, 0, 0, 0.25);
}

.admin-studio-cell--actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.admin-studio-cell--actions .botao {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.admin-studio-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: rgba(255, 255, 255, 0.05);
}

.admin-studio-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.5;
}

.admin-studio-title {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.admin-studio-excerpt {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    line-height: 1.35;
}

.admin-tag-live {
    background: rgba(39, 174, 96, 0.2);
    color: var(--color-accent-light);
}

.admin-studio-empty,
.admin-studio-toast {
    text-align: center;
    padding: 32px 16px;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.admin-studio-toast {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.35);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

.admin-studio-editor {
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.admin-studio-back {
    margin-bottom: 16px;
}

.admin-panel {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    width: 100%;
}

.admin-topbar h1 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.admin-edit-bar {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    z-index: var(--z-admin-bar);
}

.admin-edit-inline {
    display: inline-block;
    margin: 0 0 20px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.35);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-edit-inline:hover {
    background: rgba(39, 174, 96, 0.25);
    color: #fff;
}

.admin-edit-bar a {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.admin-edit-bar a:hover {
    background: #219a52;
}

.admin-intro {
    color: var(--color-admin-muted);
    margin: 6px 0 0;
    font-size: 0.95rem;
}

.admin-intro a {
    color: var(--color-accent);
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}

.admin-checkbox input {
    width: auto;
}

.md-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.md-btn {
    background: #333;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.md-btn:hover {
    background: #444;
}

.post-card-cover {
    width: 100%;
    height: clamp(120px, 22vw, 160px);
    object-fit: cover;
    border-radius: 0;
    margin: 0 0 12px;
    display: block;
}

.post-card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-soft);
    margin-top: 8px;
}

.post-card-edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: rgba(10, 12, 11, 0.92);
    border: 1px solid rgba(39, 174, 96, 0.45);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.post-card--admin:hover .post-card-edit-btn,
.post-card--admin:focus-within .post-card-edit-btn {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: none) {
    .post-card-edit-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

.post-card-edit-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.card.post-card > a:not(.post-card-edit-btn) h3 {
    padding-right: 36px;
    margin-top: 0;
}
    margin-top: 0;
}

blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 16px 0;
    padding: 8px 16px;
    color: var(--color-text-muted);
    background: rgba(39,174,96,0.08);
}

.post-content pre {
    background: rgba(0, 0, 0, 0.35);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.55;
}

.post-content code {
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: rgba(39, 174, 96, 0.12);
    font-size: 0.92em;
}

.post-content pre code {
    padding: 0;
    background: transparent;
}

.result-value-xl {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin: 10px 0;
}

.result-value-lg {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin: 10px 0;
}

.result-muted {
    color: var(--color-text-muted);
    margin: 5px 0;
}

.result-warning {
    color: var(--color-warning);
    font-weight: 500;
    margin-top: 10px;
}

.result-warning-override {
    font-weight: 500;
    margin-top: 10px;
}

.status-ok {
    color: var(--color-accent);
}

.status-info {
    color: var(--color-info);
}

.status-warn {
    color: var(--color-warning);
}

.status-danger {
    color: var(--color-danger);
}

.result-error {
    color: var(--color-danger);
}

.btn-secondary {
    background: var(--color-bg-elevated) !important;
    box-shadow: none;
    border: var(--border-input);
}

.btn-secondary:hover {
    background: var(--color-meta-bg) !important;
    transform: translateY(-1px);
}

.btn-secondary.full-width-small {
    width: 100%;
    margin-top: 10px;
    font-size: 0.85rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .botao {
    flex: 1;
    text-align: center;
}

.card h3 {
    margin-top: 0;
    color: var(--color-accent);
    font-size: 1.4rem;
}

.card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Estilos para Relatórios */
.relatorio-container {
    max-width: var(--max-width-narrow);
    line-height: 1.8;
}

.page-intro {
    max-width: var(--max-width-narrow);
    margin: 0 auto 40px;
    text-align: center;
    color: #cfcfcf;
    line-height: 1.7;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.info-panel {
    background: linear-gradient(145deg, rgba(42,42,42,0.95) 0%, rgba(33,33,33,0.98) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px;
}

.info-panel h3 {
    margin-top: 0;
    color: var(--color-accent);
}

.info-list {
    padding-left: 18px;
    color: #d4d4d4;
    line-height: 1.7;
}

.relatorio-container h1 {
    color: var(--color-accent);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.relatorio-container h2 {
    color: var(--color-accent);
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    margin-top: 32px;
    margin-bottom: 16px;
}

.relatorio-container h3 {
    color: var(--color-accent-light);
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.relatorio-figure {
    margin: 28px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.relatorio-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.relatorio-figure figcaption {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
}

.relatorio-figure--hero {
    margin-top: 8px;
    margin-bottom: 36px;
}

.relatorio-container p {
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.relatorio-container ul {
    color: var(--color-text-muted);
}

.voltar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: clamp(16px, 3vw, 24px);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(39, 174, 96, 0.28);
    background: rgba(39, 174, 96, 0.08);
    color: var(--color-accent-light);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.voltar-link:hover,
.voltar-link:focus-visible {
    background: rgba(39, 174, 96, 0.16);
    border-color: rgba(39, 174, 96, 0.45);
    color: var(--color-accent-light);
    text-decoration: none;
    outline: none;
    transform: translateX(-2px);
}

.article-header {
    margin-bottom: clamp(24px, 4vw, 36px);
}

.article-eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.meta-info {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.22);
    color: var(--color-text-muted);
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.4;
}

html[data-theme="light"] .meta-info {
    background: rgba(39, 174, 96, 0.08);
}

.post-content {
    font-size: clamp(1rem, 2.2vw, 1.05rem);
    line-height: 1.75;
    color: var(--color-text-muted);
}

.post-content > :first-child {
    margin-top: 0;
}

.post-content h2 {
    color: var(--color-accent);
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    margin: clamp(28px, 4vw, 40px) 0 14px;
    line-height: 1.25;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.post-content h3 {
    color: var(--color-accent-light);
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    margin: 24px 0 12px;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.post-content p {
    margin: 0 0 16px;
}

.post-content a {
    color: var(--color-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.post-content a:hover {
    color: var(--color-accent);
}

.post-content ul,
.post-content ol {
    margin: 0 0 18px;
    padding-left: 1.35em;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content li::marker {
    color: var(--color-accent);
}

.post-content blockquote {
    margin: 20px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(39, 174, 96, 0.08);
    color: var(--color-text);
}

.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.post-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 32px 0;
}

.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content th,
.post-content td {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.post-content th {
    background: rgba(39, 174, 96, 0.12);
    color: var(--color-accent-light);
}

.highlight {
    background: var(--color-bg-elevated);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--color-accent);
}

.highlight h3 {
    margin-top: 0;
    color: var(--color-accent);
}

.highlight ul {
    margin: 15px 0;
    padding-left: 20px;
}

.highlight li {
    margin: 10px 0;
}

/* Manual unificado — variantes de clonadora */
.manual-toc {
    margin: 24px 0 32px;
}

.manual-toc-title {
    margin: 0 0 12px;
    color: var(--color-accent);
    font-size: 1.1rem;
}

.manual-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manual-toc-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.manual-toc-link:hover {
    border-color: rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.08);
}

.manual-toc-link span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.manual-variant {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    scroll-margin-top: calc(var(--header-offset) + 16px);
}

.manual-variant-header {
    margin-bottom: 20px;
}

.manual-variant-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.18);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.manual-variant-badge--premium {
    background: rgba(52, 152, 219, 0.18);
    color: #5dade2;
}

.manual-variant-back {
    margin-top: 24px;
    font-size: 0.95rem;
}

.manual-variant-back a {
    color: var(--color-accent-light);
}

.equip-variant-links {
    margin: 12px 0 16px;
    font-size: 0.95rem;
}

.equip-variant-links a {
    color: var(--color-accent-light);
    text-decoration: none;
}

.equip-variant-links a:hover {
    text-decoration: underline;
}

.equip-variant-links span {
    margin: 0 8px;
    color: var(--color-text-soft);
}

/* Estilos para Equipamentos */
.texto-item {
    flex: 1;
}

.texto-item h3 {
    margin-top: 0;
    color: var(--color-accent);
}

.secao-subtitulo {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 2.2vw, 1.08rem);
    line-height: 1.65;
    max-width: var(--max-width-narrow);
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para Calculadora */
.calculator {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 900px;
}

.calculator .row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.calculator .row > * {
    flex: 1 1 200px;
    min-width: 160px;
}

.calculator label {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Estilos para Tabela de Referência */
.reference-table {
    margin-top: 20px;
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reference-table table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.reference-table th {
    background: var(--gradient-accent);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}

.reference-table th:first-child {
    border-radius: 6px 0 0 0;
}

.reference-table th:last-child {
    border-radius: 0 6px 0 0;
}

.reference-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-muted);
}

.reference-table tr:last-child td {
    border-bottom: none;
}

.reference-table tr:hover td {
    background: rgba(39, 174, 96, 0.05);
}

.reference-table td strong {
    color: var(--color-accent);
}

.table-legend {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--color-accent);
}

.table-legend p {
    margin: 8px 0;
    color: var(--color-text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.table-legend strong {
    color: var(--color-accent);
}

.calculator-reference {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.calculator-reference summary {
    cursor: pointer;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
}

.calculator-reference summary::-webkit-details-marker {
    display: none;
}

.calculator-reference summary::before {
    content: '▸ ';
}

.calculator-reference[open] summary::before {
    content: '▾ ';
}

.reference-table--compact {
    margin-top: 12px;
    padding: 12px;
}

.reference-note {
    margin: 12px 0 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-accent);
    color: var(--color-text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.calculator-section-label {
    color: var(--color-accent);
    font-weight: 600;
    margin: 0 0 12px;
}

.calculator-hint {
    margin: -4px 0 16px;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    line-height: 1.45;
}

.super-solo-result {
    text-align: left;
}

.super-solo-result-volume {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.super-solo-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.super-solo-result-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.super-solo-result-name {
    font-weight: 500;
    color: var(--color-text);
    min-width: 0;
}

.super-solo-result-qty {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--color-accent-light);
    font-size: 0.92rem;
    white-space: nowrap;
}

.super-solo-result-total {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 2px solid rgba(39, 174, 96, 0.35);
    font-size: 0.95rem;
    color: var(--color-text-soft);
}

.super-solo-result-total strong {
    color: var(--color-accent-light);
}

.super-solo-result .result-title {
    text-align: left;
}

.super-solo-result .result-muted {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

.super-solo-table-wrap {
    overflow-x: auto;
    text-align: left;
}

.super-solo-table-wrap table {
    min-width: 640px;
}

.super-solo-benefit {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    min-width: 140px;
}

.super-solo-total-row td {
    border-top: 2px solid rgba(39, 174, 96, 0.35);
    background: rgba(39, 174, 96, 0.08);
}

@media (max-width: 480px) {
    .super-solo-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.label-optional {
    font-weight: 400;
    font-size: 0.82em;
    color: var(--color-text-soft);
}

.super-solo-comp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.super-solo-comp-btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
}

.super-solo-components {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.15);
}

@media (min-width: 520px) {
    .super-solo-components {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.super-solo-comp-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.super-solo-comp-item:hover {
    border-color: rgba(39, 174, 96, 0.35);
    background: rgba(39, 174, 96, 0.06);
}

.super-solo-comp-item:has(input:checked) {
    border-color: rgba(39, 174, 96, 0.45);
    background: rgba(39, 174, 96, 0.1);
}

.super-solo-comp-item input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.super-solo-comp-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.super-solo-comp-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-label);
    line-height: 1.25;
}

.super-solo-comp-benefit {
    font-size: 0.8rem;
    color: var(--color-text-soft);
    line-height: 1.35;
}

.super-solo-comp-dose {
    font-size: 0.75rem;
    color: var(--color-accent);
    opacity: 0.85;
    line-height: 1.3;
}

/* Hub e páginas de calculadoras — layout tipo app */
.calc-hub .secao-subtitulo {
    margin-bottom: clamp(20px, 4vw, 32px);
}

.calc-hub-category {
    color: var(--color-text-soft);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: clamp(28px, 4vw, 40px) 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-hub-category:first-of-type {
    margin-top: 0;
}

.calc-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 420px;
}

.calc-apps-grid--all {
    max-width: min(520px, 100%);
}

@media (min-width: 640px) {
    .calc-apps-grid--all {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 560px;
    }
}

.calc-app-tile {
    --tile-bg: rgba(255, 255, 255, 0.05);
    --tile-icon-bg: rgba(39, 174, 96, 0.18);
    --tile-icon-border: rgba(39, 174, 96, 0.28);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    aspect-ratio: 1;
    padding: 16px 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, var(--tile-bg), rgba(0, 0, 0, 0.12));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.calc-app-tile:hover,
.calc-app-tile:focus-visible {
    border-color: rgba(39, 174, 96, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    outline: none;
}

.calc-app-tile--featured {
    border-color: rgba(39, 174, 96, 0.4);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.12);
}

.calc-app-tile-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--tile-icon-bg), rgba(0, 0, 0, 0.08));
    border: 1px solid var(--tile-icon-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.calc-app-tile-icon {
    font-size: 2rem;
    line-height: 1;
}

.calc-app-tile-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    color: var(--color-label);
    max-width: 100%;
    word-break: break-word;
}

.calc-app-tile--luximetro {
    --tile-icon-bg: rgba(255, 193, 7, 0.22);
    --tile-icon-border: rgba(255, 193, 7, 0.35);
}

.calc-app-tile--vpd {
    --tile-icon-bg: rgba(52, 152, 219, 0.22);
    --tile-icon-border: rgba(52, 152, 219, 0.35);
}

.calc-app-tile--dli {
    --tile-icon-bg: rgba(243, 156, 18, 0.24);
    --tile-icon-border: rgba(243, 156, 18, 0.38);
}

.calc-app-tile--super-solo {
    --tile-icon-bg: rgba(139, 90, 43, 0.28);
    --tile-icon-border: rgba(139, 90, 43, 0.4);
}

.calc-app-tile--volume-vaso {
    --tile-icon-bg: rgba(149, 165, 166, 0.22);
    --tile-icon-border: rgba(149, 165, 166, 0.35);
}

.calc-app-tile--ec {
    --tile-icon-bg: rgba(41, 128, 185, 0.24);
    --tile-icon-border: rgba(41, 128, 185, 0.38);
}

.calc-app-tile--diluicao {
    --tile-icon-bg: rgba(155, 89, 182, 0.22);
    --tile-icon-border: rgba(155, 89, 182, 0.35);
}

.calc-app-tile--ph {
    --tile-icon-bg: rgba(46, 204, 113, 0.22);
    --tile-icon-border: rgba(46, 204, 113, 0.35);
}

.calc-app-tile--energia {
    --tile-icon-bg: rgba(241, 196, 15, 0.24);
    --tile-icon-border: rgba(241, 196, 15, 0.38);
}

.calc-app-tile--watts-m2 {
    --tile-icon-bg: rgba(230, 126, 34, 0.24);
    --tile-icon-border: rgba(230, 126, 34, 0.38);
}

.app-tile-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    display: block;
    box-sizing: border-box;
    width: max-content;
    max-width: min(260px, 88vw);
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(10, 14, 12, 0.97);
    border: 1px solid rgba(39, 174, 96, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    color: var(--color-text-soft);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 30;
}

.nav-app-tile .app-tile-tip {
    max-width: min(220px, 78vw);
    font-size: 0.72rem;
}

@media (hover: hover) {
    .calc-app-tile:hover .app-tile-tip,
    .calc-app-tile:focus-visible .app-tile-tip,
    .nav-app-tile:hover .app-tile-tip,
    .nav-app-tile:focus-visible .app-tile-tip,
    .has-hover-tip:hover .app-tile-tip,
    .has-hover-tip:focus-visible .app-tile-tip,
    .has-hover-tip:focus-within .app-tile-tip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.has-hover-tip {
    position: relative;
    overflow: visible;
}

body[data-page="home"] .botao-home.has-hover-tip {
    overflow: visible;
}

.nav-recent-link.has-hover-tip {
    position: relative;
}

.hero-actions .has-hover-tip .app-tile-tip {
    max-width: min(280px, 92vw);
}

.guia-tools .info-list a.has-hover-tip,
.guia-tools .info-list a[data-tip] {
    position: relative;
}

.calc-app-page {
    max-width: var(--max-width-app);
}

.calc-app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-app-back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
}

.calc-app-back:hover,
.calc-app-back:focus-visible {
    border-color: rgba(39, 174, 96, 0.45);
    background: rgba(39, 174, 96, 0.1);
    outline: none;
}

.calc-app-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.calc-app-header-main h1 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.2;
}

.calc-app-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.calc-app-guia-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.12);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.calc-app-guia-btn:hover,
.calc-app-guia-btn:focus-visible {
    background: rgba(39, 174, 96, 0.22);
    outline: none;
}

.calc-app-about {
    margin-bottom: 16px;
}

.calc-app-about summary {
    cursor: pointer;
    color: var(--color-text-soft);
    font-size: 0.85rem;
    user-select: none;
}

.calc-app-about-text {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: var(--color-text-soft);
    line-height: 1.5;
}

.calc-app-body {
    min-width: 0;
}

.calc-app-card {
    margin: 0;
}

/* Estilos para Categorias */
.category-title {
    color: var(--color-accent);
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin: clamp(32px, 6vw, 60px) 0 clamp(16px, 3vw, 30px);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(39, 174, 96, 0.3);
}

.category-title:first-of-type {
    margin-top: 0;
}

/* Estilos para PWA Install Button */
.install-prompt {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    right: auto;
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
    z-index: var(--z-install);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
    max-width: calc(100vw - 32px);
}

.install-prompt.is-hidden {
    display: none;
}

.install-prompt:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.5);
}

.install-prompt:focus {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

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

.pwa-install-sheet[hidden] {
    display: none !important;
}

.pwa-install-sheet {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-install, 9000) + 10);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.pwa-install-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.pwa-install-sheet-panel {
    position: relative;
    width: min(100%, 420px);
    margin-bottom: env(safe-area-inset-bottom, 0);
    padding: 20px 20px 16px;
    border-radius: var(--radius-lg, 16px);
    background: var(--color-surface, #1e1e1e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.pwa-install-sheet-panel h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.pwa-install-sheet-panel p {
    margin: 0 0 16px;
    line-height: 1.5;
    color: var(--color-text-soft);
}

.pwa-ios-share-icon {
    display: inline-block;
    font-weight: 700;
}

.pwa-install-sheet-close {
    width: 100%;
}

/* Estilos para Features */
.features {
    background: var(--color-bg);
    padding: var(--space-section) var(--space-page-x);
}

body[data-page="home"] .features {
    padding: clamp(20px, 3vw, 28px) var(--space-page-x);
}

.conteudo-wide {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    color: var(--color-admin-muted);
    margin: 12px auto 0;
    max-width: var(--content-stack-width);
    line-height: 1.6;
}

.home-cards {
    grid-template-columns: 1fr;
    gap: clamp(10px, 1.8vw, 14px);
    margin-top: 16px;
    align-items: stretch;
}

@media (min-width: 640px) {
    .home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 20px;
    }

    .home-card-featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "icon title action"
            "icon text action";
        gap: 8px 20px;
        align-items: center;
        text-align: left;
        min-height: auto;
        padding: 20px 24px;
    }

    .home-card-featured .card-icon {
        grid-area: icon;
        margin: 0;
        font-size: 2.25rem;
        align-self: center;
    }

    .home-card-featured h3 {
        grid-area: title;
        margin: 0;
        align-self: end;
    }

    .home-card-featured p {
        grid-area: text;
        margin: 0;
        align-self: start;
    }

    .home-card-featured .botao-home {
        grid-area: action;
        width: auto;
        min-width: 140px;
        margin: 0;
        align-self: center;
    }
}

.home-card {
    position: relative;
    text-align: center;
    align-items: stretch;
    min-height: auto;
    padding: clamp(12px, 2vw, 16px);
}

.home-card .card-icon {
    font-size: 1.65rem;
    line-height: 1;
    margin-bottom: 8px;
    align-self: center;
}

.home-card-featured {
    border: 1px solid var(--color-border-accent);
    background: linear-gradient(145deg, rgba(39, 174, 96, 0.12) 0%, #2a2a2a 100%);
}

.home-card-featured h3 {
    color: var(--color-accent-light);
}

.home-card--guia {
    border: 1px solid rgba(39, 174, 96, 0.45);
    background: linear-gradient(160deg, rgba(39, 174, 96, 0.14) 0%, rgba(42, 42, 42, 1) 55%);
    box-shadow:
        0 0 0 1px rgba(46, 204, 113, 0.08),
        var(--shadow-card);
}

.home-card--guia h3 {
    color: var(--color-accent-light);
}

.home-card--cultivo {
    border: 1px solid rgba(241, 196, 15, 0.45);
    background: linear-gradient(160deg, rgba(241, 196, 15, 0.12) 0%, rgba(42, 42, 42, 1) 55%);
    box-shadow:
        0 0 0 1px rgba(241, 196, 15, 0.08),
        var(--shadow-card);
}

.home-card--cultivo h3 {
    color: #f4d03f;
}

.card-icon--cultivo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 1.45rem;
    background: linear-gradient(145deg, rgba(241, 196, 15, 0.35), rgba(243, 156, 18, 0.15));
    border: 1px solid rgba(241, 196, 15, 0.4);
    box-shadow: 0 3px 10px rgba(241, 196, 15, 0.18);
}

.home-card--loja {
    border: 1px solid rgba(230, 126, 34, 0.4);
    background: linear-gradient(160deg, rgba(230, 126, 34, 0.12) 0%, rgba(42, 42, 42, 1) 55%);
    box-shadow:
        0 0 0 1px rgba(230, 126, 34, 0.08),
        var(--shadow-card);
}

.home-card--loja h3 {
    color: #f5b041;
}

.card-icon--loja {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 1.45rem;
    background: linear-gradient(145deg, rgba(230, 126, 34, 0.35), rgba(211, 84, 0, 0.15));
    border: 1px solid rgba(230, 126, 34, 0.4);
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.18);
}

.perfil-account-actions {
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-icon--guia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 1.45rem;
    background: linear-gradient(145deg, rgba(39, 174, 96, 0.35), rgba(46, 204, 113, 0.15));
    border: 1px solid rgba(46, 204, 113, 0.4);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.18);
}

.home-card h3 {
    margin-bottom: 6px;
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    line-height: 1.25;
}

.home-card p {
    flex: 1;
    margin-bottom: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
}

body[data-page="home"] .home-card:hover {
    transform: translateY(-2px);
}

/* Home — botões padronizados */
body[data-page="home"] .botao-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    margin-top: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    border: 1px solid rgba(39, 174, 96, 0.25);
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

body[data-page="home"] .botao-home:hover {
    background: var(--gradient-accent-hover);
    border-color: rgba(46, 204, 113, 0.55);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(46, 204, 113, 0.2),
        0 8px 28px rgba(39, 174, 96, 0.45);
}

body[data-page="home"] .botao-home--secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    color: var(--color-text);
}

body[data-page="home"] .botao-home--secondary:hover {
    background: rgba(39, 174, 96, 0.16);
    border-color: rgba(39, 174, 96, 0.45);
    color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(46, 204, 113, 0.12),
        0 6px 22px rgba(39, 174, 96, 0.3);
}

body[data-page="home"] .hero-actions .botao-home {
    width: 100%;
    justify-self: stretch;
}

body[data-page="home"] .home-card .botao-home {
    width: 100%;
    margin-top: auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
}

body[data-page="home"] .home-announcement-inner .botao-home {
    flex: 0 0 auto;
    align-self: center;
}

body[data-page="home"] .about .botao-home {
    width: min(100%, 280px);
    margin: 32px auto 0;
}

/* Home — anúncio sorteio, pilares, feed e YouTube */
.home-announcement {
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.18) 0%, rgba(39, 174, 96, 0.06) 100%);
    border-block: 1px solid var(--color-border-accent);
    padding: 28px var(--space-page-x);
}

.home-announcement-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    max-width: var(--max-width-wide);
    margin-inline: auto;
}

.home-announcement-copy {
    flex: 1 1 280px;
    min-width: 0;
}

.home-announcement-badge {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-light);
}

.home-announcement-inner h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--color-text);
}

.home-announcement-prize,
.home-announcement-date {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Home — balão YouTube */
.home-yt-bubble {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    z-index: calc(var(--z-install) - 1);
    width: min(300px, calc(100vw - 32px));
    padding: 16px 44px 16px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-accent);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.home-yt-bubble::after {
    content: '';
    position: absolute;
    right: 28px;
    bottom: -9px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--color-border-accent);
}

.home-yt-bubble::before {
    content: '';
    position: absolute;
    right: 29px;
    bottom: -7px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid var(--color-surface);
    z-index: 1;
}

.home-yt-bubble.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.home-yt-bubble-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.home-yt-bubble-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-text);
}

.home-yt-bubble-icon {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #ff4444;
}

.home-yt-bubble-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
}

.home-yt-bubble-text {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.home-yt-bubble-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .home-yt-bubble {
        transition: none;
        transform: none;
    }
}

@media (max-width: 480px) {
    .home-yt-bubble {
        bottom: max(72px, calc(env(safe-area-inset-bottom) + 56px));
    }
}

.lab-pillars {
    padding: var(--space-section) var(--space-page-x);
    background: var(--color-surface);
}

body[data-page="home"] .lab-pillars {
    padding: clamp(18px, 3vw, 24px) var(--space-page-x);
}

.lab-pillars--end {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
    align-items: stretch;
}

.lab-pillar {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    border: var(--border-subtle);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

body[data-page="home"] .lab-pillar {
    padding: clamp(14px, 2vw, 18px);
}

body[data-page="home"] .lab-pillars-grid {
    gap: clamp(10px, 1.8vw, 14px);
}

.lab-pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--color-border-accent);
}

body[data-page="home"] .lab-pillar-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    margin-bottom: 8px;
    border-radius: 10px;
}

.lab-pillar h3 {
    margin: 0 0 10px;
    color: var(--color-accent);
}

body[data-page="home"] .lab-pillar h3 {
    margin-bottom: 6px;
    font-size: clamp(0.92rem, 1.8vw, 1rem);
}

.lab-pillar p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

body[data-page="home"] .lab-pillar p {
    font-size: 0.8rem;
    line-height: 1.45;
}

.home-latest {
    padding: var(--space-section) var(--space-page-x);
}

.home-latest--compact {
    padding: clamp(18px, 3vw, 24px) var(--space-page-x);
}

.home-latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 10px;
}

.home-latest h2,
.home-latest--compact h2 {
    text-align: left;
    color: var(--color-accent);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 700;
    margin: 0;
}

.home-latest-nav {
    margin: 0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-soft);
}

.home-latest-nav a {
    color: var(--color-accent-light);
    text-decoration: none;
    font-weight: 600;
}

.home-latest-nav a:hover {
    text-decoration: underline;
}

.home-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.home-latest-item {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-latest-item:last-child {
    border-bottom: none;
}

.home-latest-item--loading,
.home-latest-item--empty {
    padding: 12px 14px;
}

.home-latest-item--loading .empty-message,
.home-latest-item--empty .empty-message {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.88rem;
}

.home-latest-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    font-size: 0.88rem;
    transition: background 0.15s ease;
}

.home-latest-row:hover {
    background: rgba(39, 174, 96, 0.08);
}

.home-latest-badge {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--color-accent-muted);
    border: 1px solid var(--color-border-accent);
    color: var(--color-accent-light);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.home-latest-title {
    min-width: 0;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-latest-date {
    flex-shrink: 0;
    font-size: 0.76rem;
    color: var(--color-text-soft);
    white-space: nowrap;
}

.home-latest-item .post-card-edit-btn {
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

@media (max-width: 520px) {
    .home-latest-row {
        grid-template-columns: auto 1fr;
        gap: 6px 10px;
        padding: 10px 12px;
    }

    .home-latest-date {
        grid-column: 2;
        font-size: 0.72rem;
    }
}

.section-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    text-align: center;
    margin-top: 28px;
    color: var(--color-text-soft);
}

.section-cta-sep {
    color: var(--color-text-soft);
    line-height: 1;
}

.section-cta a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.section-cta a:hover {
    text-decoration: underline;
}

.home-cta-cards {
    padding: 0 var(--space-page-x) clamp(20px, 3vw, 28px);
}

.home-cta-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 16px);
    max-width: var(--max-width-wide);
    margin-inline: auto;
}

.home-cta-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 20px);
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    border: var(--border-subtle);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cta-card:hover {
    border-color: rgba(39, 174, 96, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.home-cta-card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 1.35rem;
    line-height: 1;
}

.home-cta-card--sorteios .home-cta-card-icon {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.home-cta-card--youtube .home-cta-card-icon {
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 0, 0, 0.25);
    color: #ff4444;
    font-size: 1.1rem;
}

.home-cta-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.home-cta-card-title {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 700;
    color: var(--color-accent-light);
    line-height: 1.25;
}

.home-cta-card-text {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--color-text-soft);
}

.home-cta-card-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--color-text-muted);
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-cta-card:hover .home-cta-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .home-cta-cards-grid {
        grid-template-columns: 1fr;
    }
}

.privacy-updated {
    color: var(--color-text-soft);
    margin-top: 32px;
}

.section-cta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
    text-align: left;
}

.contact-card h3 {
    margin-top: 0;
    color: var(--color-accent);
}

.contact-faq {
    margin-top: 48px;
    text-align: left;
    max-width: var(--max-width-app);
    margin-inline: auto;
}

.contact-faq h2 {
    text-align: center;
    color: var(--color-accent);
}

.contact-faq details {
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-elevated);
    border: var(--border-subtle);
}

.contact-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text);
}

.contact-faq p {
    margin: 12px 0 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.features h2 {
    text-align: center;
    margin: 0 0 8px;
    color: var(--color-accent);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

body[data-page="home"] .features h2 {
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    margin-bottom: 4px;
}

body[data-page="home"] .features .section-subtitle {
    margin-top: 4px;
    font-size: 0.86rem;
    line-height: 1.45;
}

/* Estilos para About */
.about {
    background: var(--color-bg);
    padding: var(--space-section) var(--space-page-x);
}

.about h2 {
    margin-bottom: 24px;
    color: var(--color-accent);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

/* Footer */
.site-footer {
    margin-top: clamp(40px, 6vw, 56px);
    border-top: 1px solid var(--color-header-border);
    background: var(--color-surface);
    color: var(--color-text-soft);
}

.footer-shell {
    width: 100%;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: clamp(36px, 5vw, 48px) var(--space-page-x) clamp(20px, 3vw, 28px);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
    align-items: start;
}

.footer-brand {
    min-width: 0;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}

.footer-brand-link:hover {
    opacity: 0.88;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.footer-brand-tagline {
    margin: 0 0 14px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--color-text-soft);
    max-width: 28ch;
}

.footer-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-yt-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-ext {
    font-size: 0.78rem;
    opacity: 0.75;
}

.footer-col {
    min-width: 0;
}

.footer-col-title {
    margin: 0 0 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-light);
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-links a {
    display: inline-block;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    transition: color 0.15s ease;
}

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

.footer-col-links a.active {
    color: var(--color-accent-light);
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin-top: clamp(28px, 4vw, 36px);
    padding-top: clamp(18px, 3vw, 24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy,
.footer-legal {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-soft);
}

.footer-legal a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

footer p {
    margin: 0;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .footer-brand-tagline {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        padding-bottom: 20px;
    }

    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

html[data-theme="light"] .footer-bar,
html[data-theme="light"] .footer-brand {
    border-color: rgba(0, 0, 0, 0.08);
}

.about-youtube-link {
    margin-top: 24px;
}

.about-youtube-link a {
    color: var(--color-accent);
    font-weight: 600;
}

.info-panel-text {
    margin: 0 0 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Navegação ativa — ver regras do header moderno (.nav-pill) */

/* Menu Mobile */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    padding: 10px 11px;
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 16px;
}

.menu-toggle-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
    transform-origin: center;
}

.menu-toggle.is-active .menu-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-toggle.is-active .menu-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-footer {
    display: none;
}

.mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--gradient-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-cta--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: var(--color-text);
}

.mobile-nav-cta:hover {
    transform: translateY(-1px);
}

.menu-toggle:hover {
    background: rgba(39, 174, 96, 0.15);
    border-color: var(--color-border-accent);
}

/* Responsividade */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        order: 2;
    }

    .admin-editor {
        order: 1;
    }

    .admin-studio-row,
    .admin-studio-row--head {
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas:
            "thumb title"
            "thumb meta"
            "thumb actions";
    }

    .admin-studio-row--head {
        display: none;
    }

    .admin-studio-cell--thumb { grid-area: thumb; }
    .admin-studio-cell--title { grid-area: title; }
    .admin-studio-cell--cat,
    .admin-studio-cell--status,
    .admin-studio-cell--date {
        grid-area: meta;
        display: inline-flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .admin-studio-cell--cat::before { content: none; }
    .admin-studio-cell--actions {
        grid-area: actions;
        justify-content: flex-start;
    }

    .admin-studio-filters {
        flex-direction: column;
    }

    .admin-studio-search {
        max-width: none;
    }

    .admin-studio-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 1100px) and (min-width: 1025px) {
    .primary-nav > ul {
        gap: 4px;
    }

    nav ul li a,
    .nav-top-link,
    .nav-dropdown-toggle {
        padding: 8px 11px;
        font-size: 0.86rem;
    }

    .nav-pill,
    .primary-nav > ul > li > .nav-top-link,
    .primary-nav > ul > li > .nav-dropdown-toggle {
        padding: 8px 12px;
        font-size: 0.84rem;
    }

    .nav-mega-panel {
        width: min(520px, calc(100vw - 32px));
        min-width: min(480px, calc(100vw - 32px));
    }

    .nav-mega-panel--wide {
        width: min(100%, calc(100vw - 32px));
        min-width: 0;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    #site-header {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: var(--padding-header-y) var(--space-page-x);
        min-height: var(--header-height);
    }

    #site-header.is-scrolled {
        min-height: var(--header-height-scrolled);
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #site-header .primary-nav {
        display: none !important;
    }

    .logo-tagline {
        display: none;
    }

    .logo-name {
        font-size: 0.95rem;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .header-right {
        flex: 0 0 auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 6px;
        min-width: 0;
        margin-left: auto;
    }

    .header-utilities {
        gap: 0;
        padding: 2px;
    }

    .header-profile-slot:not(:empty)::before {
        margin: 0 1px 0 2px;
        height: 22px;
    }

    .header-icon-btn--admin {
        display: none;
    }

    .header-profile-link {
        padding: 2px;
        min-height: 0;
        max-width: none;
        border-radius: 50%;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .header-profile-link:hover,
    .header-profile-link:focus-visible {
        background: rgba(39, 174, 96, 0.12);
        border-color: rgba(39, 174, 96, 0.35);
        transform: none;
    }

    .header-profile-name {
        display: none;
    }

    .header-profile-avatar {
        width: 34px;
        height: 34px;
    }

    .header-group-divider {
        display: none;
    }

    .header-toolbar {
        position: relative;
        padding: 0;
        gap: 0;
    }

    .site-search {
        right: 0;
        left: auto;
        width: min(360px, calc(100vw - 24px));
    }

    .header-toolbar .header-icon-btn--link {
        display: none;
    }

    .header-icon-btn {
        width: 34px;
        height: 34px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        padding: 0;
        margin-left: 2px;
        border-radius: 999px;
    }

    .item-lista {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .item-lista img {
        max-width: 100%;
        width: 100%;
    }
}

/* Drawer mobile — independente do header (no body) */
.mobile-menu-scrim {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer-scrim);
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-scrim.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 92vw);
    z-index: var(--z-drawer);
    display: flex;
    flex-direction: column;
    background: #0b0d0c;
    border-left: 1px solid rgba(39, 174, 96, 0.25);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px var(--space-page-x);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.mobile-menu-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu-close:hover {
    border-color: var(--color-border-accent);
    background: rgba(39, 174, 96, 0.15);
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px var(--space-page-x) 20px;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-body .nav-accordion-list {
    gap: 4px;
}

.mobile-menu-body .nav-accordion-wrap {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-utils {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.mobile-menu-util {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
}

.mobile-menu-util:hover,
.mobile-menu-util:focus-visible {
    border-color: rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.08);
    outline: none;
}

.mobile-menu-util--cta {
    border-color: rgba(39, 174, 96, 0.35);
    background: rgba(39, 174, 96, 0.12);
    color: var(--color-accent-light);
}

.mobile-menu-util-icon {
    width: 1.35rem;
    text-align: center;
    flex-shrink: 0;
}

.mobile-menu-section + .mobile-menu-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-account {
    margin-bottom: 12px;
}

.mobile-menu-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.28);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu-account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-menu-section {
    margin-top: 8px;
}

.mobile-menu-section-title {
    margin: 0 0 6px;
    padding: 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list--solo {
    margin-bottom: 4px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-accent-light);
}

.mobile-menu-link.is-active {
    background: rgba(39, 174, 96, 0.16);
    color: var(--color-accent-light);
    box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.25);
}

.mobile-menu-link--cta {
    justify-content: center;
    border: 1px solid rgba(39, 174, 96, 0.45);
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.mobile-menu-link--cta:hover,
.mobile-menu-link--cta:focus-visible {
    background: var(--gradient-accent-hover);
    color: #fff;
}

.mobile-menu-section--flat {
    margin-top: 0;
    margin-bottom: 8px;
}

.mobile-menu-link-icon {
    width: 1.35rem;
    text-align: center;
    flex-shrink: 0;
}

.mobile-menu-foot {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-foot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--gradient-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.mobile-menu-foot-link--muted {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

@media (min-width: 1025px) {
    .mobile-menu,
    .mobile-menu-scrim {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .sorteios-field-row {
        grid-template-columns: 1fr;
    }

    .sorteios-google-embed {
        min-height: min(520px, 70vh);
    }

    .hero-actions {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .home-card-featured {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: clamp(20px, 3vw, 30px);
    }

    .home-card-featured .botao-home {
        width: 100%;
    }

    .home-announcement-inner {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-page="home"] .home-announcement-inner .botao-home {
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    body[data-page="home"] .about .botao-home {
        width: 100%;
    }

    .admin-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-actions .botao {
        width: 100%;
    }

    .admin-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-edit-bar {
        left: 16px;
        right: 16px;
    }

    .admin-edit-bar a {
        display: block;
        text-align: center;
    }

    .login-box {
        margin-top: 16px;
        padding: 24px 20px;
    }

    .post-content pre,
    .post-content img {
        max-width: 100%;
    }

    .calculator .row > * {
        flex: 1 1 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        grid-template-columns: 1fr;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    body[data-page="home"] .botao-home {
        white-space: normal;
    }

    .item-lista .botao {
        width: auto;
        min-width: 160px;
    }

    /* Ecrãs muito pequenos: esconder busca no header (acesso pelo menu hambúrguer) */
    #search-toggle {
        display: none;
    }

    /* Esconder nome do logo — manter só o ícone para ganhar espaço ao hambúrguer */
    .logo-copy {
        display: none;
    }

    .logo-link {
        gap: 0;
    }
}

/* Tema claro */
html[data-theme="light"] {
    color-scheme: light;
    --color-bg: #f4f6f5;
    --color-bg-elevated: #ffffff;
    --color-surface: #eef1ef;
    --color-text: #1a1f1c;
    --color-text-muted: #3d4a42;
    --color-text-soft: #5c6b61;
    --color-meta-bg: #e8ece9;
    --color-header-bg: rgba(255, 255, 255, 0.92);
    --color-header-border: rgba(39, 174, 96, 0.35);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #eef1ef 100%);
    --border-subtle: 1px solid rgba(0, 0, 0, 0.06);
    --border-input: 1px solid rgba(0, 0, 0, 0.12);
    --color-overlay: rgba(255, 255, 255, 0.92);
    --color-label: #2a332e;
}

html[data-theme="light"] .header-utilities {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .header-profile-slot:not(:empty)::before {
    background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .header-group-divider {
    background: rgba(0, 0, 0, 0.1);
}

.site-breadcrumbs {
    max-width: var(--max-width-wide);
    margin: 18px auto 0;
    padding: 0 var(--space-page-x);
    position: relative;
    z-index: var(--z-main);
}

.site-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

.site-breadcrumbs-item:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    opacity: 0.6;
}

.site-breadcrumbs-item a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.site-breadcrumbs-item a:hover {
    color: var(--color-accent);
}

.site-search {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(400px, calc(100vw - 32px));
    background: var(--color-bg-elevated);
    border: 1px solid rgba(39, 174, 96, 0.22);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    padding: 12px;
    z-index: var(--z-nav-dropdown);
}

.site-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.site-search-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.site-search-kbd {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: var(--color-text-soft);
    font-size: 0.68rem;
    font-family: inherit;
    line-height: 1.2;
}

.site-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.site-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: var(--border-input);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
}

.site-search-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

.site-search-close:hover,
.site-search-close:focus-visible {
    border-color: rgba(39, 174, 96, 0.4);
    color: var(--color-accent-light);
    outline: none;
}

.site-search-results {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    max-height: 320px;
    overflow: auto;
}

.site-search-hit {
    display: block;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
}

.site-search-hit:hover,
.site-search-hit:focus {
    background: var(--color-accent-muted);
}

.site-search-hit-title {
    display: block;
    font-weight: 600;
}

.site-search-hit-excerpt {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin-top: 4px;
}

.site-search-hint {
    padding: 12px;
    color: var(--color-text-soft);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
}

.empty-state .botao {
    margin-top: 16px;
}

.videos-page .videos-header {
    margin-bottom: 32px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.video-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.video-card-body {
    padding: 16px;
}

.video-card-title {
    font-size: 1rem;
    margin: 0 0 8px;
}

.video-card-summary {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 8px;
}

.video-card-date {
    font-size: 0.8rem;
    color: var(--color-text-soft);
}

.newsletter-cta {
    margin-top: 40px;
    text-align: center;
}

.newsletter-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.sorteios-message--ok {
    color: var(--color-accent-light);
}

.sorteios-message--error {
    color: #e74c3c;
}

.login-prod-warning {
    font-size: 0.85rem;
    color: var(--color-warning);
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.35);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .site-search {
        right: -8px;
        left: -8px;
        width: auto;
    }
}


/* Login Google / conta */
.entrar-page .entrar-box {
    margin: 0 auto;
}

.entrar-actions {
    margin: 24px 0 16px;
}

.botao-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.botao-google:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

html[data-theme="light"] .botao-google {
    background: #fff;
}

.botao-google.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.entrar-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: none;
}

.entrar-google-btn:hover {
    color: #1a1a1a;
    transform: translateY(-1px);
}

.botao-google-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.entrar-legal,
.entrar-admin-link {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    text-align: center;
}

.nav-user-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-user-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.conta-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.conta-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border-accent);
    background: var(--color-surface);
}

/* Loja parceira */
.loja-page {
    max-width: var(--max-width-narrow);
}

.loja-catalog {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 20px);
}

.loja-project {
    scroll-margin-top: 88px;
}

.loja-project-card {
    padding: clamp(16px, 3vw, 20px);
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    border: var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.loja-project-head-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.loja-project-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.loja-project-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    min-width: 0;
}

.loja-project-title {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.25;
}

.loja-project-badge {
    margin: 0;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent-light);
    background: rgba(61, 92, 40, 0.2);
    border-radius: 999px;
}

.loja-project-summary {
    margin: 0 0 12px;
    padding-left: 56px;
    font-size: 0.88rem;
    color: var(--color-text-soft);
    line-height: 1.5;
}

.loja-project-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 14px;
    padding-left: 56px;
}

.loja-action-link,
.loja-order-link {
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-accent-light);
    transition: color 0.15s ease;
}

.loja-order-link {
    color: var(--color-accent);
}

.loja-action-link:hover,
.loja-order-link:hover {
    text-decoration: underline;
}

.loja-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.loja-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    line-height: 1.35;
}

.loja-product-row:last-child {
    border-bottom: none;
}

.loja-product-name {
    flex: 1;
    min-width: 0;
    color: var(--color-text);
}

.loja-product-optional {
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--color-text-soft);
}

.loja-buy-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    background: rgba(61, 92, 40, 0.22);
    border: 1px solid rgba(61, 92, 40, 0.4);
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.loja-buy-link:hover {
    background: rgba(61, 92, 40, 0.35);
    border-color: var(--color-accent-light);
    text-decoration: none;
}

.loja-buy-link--magalu {
    background: rgba(0, 134, 255, 0.12);
    border-color: rgba(0, 134, 255, 0.35);
}

.loja-buy-link--magalu:hover {
    background: rgba(0, 134, 255, 0.22);
    border-color: #0086ff;
}

.loja-order-callout-host {
    margin-top: 12px;
}

.manual-loja-callout {
    margin: 24px 0;
}

.manual-loja-callout h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.manual-loja-callout p {
    margin: 0 0 14px;
    color: var(--color-text-soft);
}

.equip-loja-materials {
    margin: 24px 0;
    padding: 18px 18px 16px;
    border-left: 4px solid rgba(230, 126, 34, 0.55);
}

.equip-loja-materials--compact {
    margin: 16px 0 0;
    padding: 14px 14px 12px;
}

.equip-loja-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f5b041;
}

.equip-loja-title {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.equip-loja-materials--compact .equip-loja-title {
    font-size: 1rem;
}

.equip-loja-intro {
    margin: 0 0 14px;
    color: var(--color-text-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.equip-loja-materials--compact .equip-loja-intro {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.equip-loja-product-list {
    margin-bottom: 12px;
}

.equip-loja-product-row {
    align-items: flex-start;
}

.equip-loja-product-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.equip-loja-product-role {
    font-size: 0.78rem;
    color: var(--color-text-soft);
    line-height: 1.35;
}

.equip-loja-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

html[data-theme="light"] .equip-loja-materials {
    border-left-color: rgba(211, 84, 0, 0.45);
}

.loja-order-card {
    margin: 18px 0 16px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(46, 204, 113, 0.35);
    background:
        linear-gradient(145deg, rgba(39, 174, 96, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.08);
}

.loja-order-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.loja-order-brand--page {
    margin-bottom: 14px;
}

.loja-order-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(39, 174, 96, 0.45);
    object-fit: cover;
    flex-shrink: 0;
}

.loja-order-brand-name {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-accent-light);
}

.loja-order-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.18);
    color: var(--color-accent-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.loja-order-headline {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--color-text);
}

.loja-order-summary,
.loja-order-note {
    margin: 0 0 12px;
    color: var(--color-text-soft);
    line-height: 1.55;
    font-size: 0.92rem;
}

.loja-order-note {
    font-size: 0.85rem;
    opacity: 0.95;
}

.loja-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    text-decoration: none;
}

.loja-order-btn-label {
    font-weight: 700;
}

.loja-order-btn-arrow {
    opacity: 0.9;
    font-size: 1.05rem;
}

.loja-order-btn--submit {
    width: auto;
    min-width: min(100%, 280px);
}

.loja-encomenda-page {
    max-width: var(--max-width-app);
}

.loja-encomenda-page.article-page {
    max-width: var(--max-width-app);
}

.loja-encomenda-header {
    margin-bottom: 24px;
}

.loja-encomenda-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: var(--border-input);
    background: rgba(0, 0, 0, 0.25);
    color: var(--color-text);
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}

.loja-encomenda-form textarea:focus {
    outline: none;
    border-color: rgba(39, 174, 96, 0.55);
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.18);
}

.loja-encomenda-product {
    margin: -8px 0 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.22);
    color: var(--color-accent-light);
    font-size: 0.92rem;
    font-weight: 600;
}

.loja-encomenda-success h2 {
    margin-top: 0;
    color: var(--color-accent-light);
}

.field-optional {
    font-weight: 400;
    color: var(--color-text-soft);
    font-size: 0.88em;
}

.loja-order-callout-host {
    margin: 20px 0 28px;
}

.loja-package-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 18px;
}

.loja-package-fieldset legend {
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0;
}

.loja-package-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loja-package-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: var(--border-input);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.loja-package-option:hover {
    border-color: rgba(39, 174, 96, 0.35);
}

.loja-package-option:has(input:checked) {
    border-color: rgba(39, 174, 96, 0.55);
    background: rgba(39, 174, 96, 0.1);
}

.loja-package-option input {
    margin-top: 4px;
    flex-shrink: 0;
}

.loja-package-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.loja-package-label {
    font-weight: 600;
    color: var(--color-text);
}

.loja-package-desc {
    font-size: 0.92rem;
    color: var(--color-text-soft);
    line-height: 1.4;
}

.loja-package-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent-light);
}

.loja-admin-msg {
    display: block;
    max-width: 220px;
    white-space: pre-wrap;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--color-text-soft);
}

.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    min-width: 44px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 148px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 12px;
    border: 1px solid rgba(143, 181, 128, 0.22);
    background: var(--color-surface, rgba(18, 24, 18, 0.96));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: calc(var(--z-nav-dropdown, 1200) + 2);
}

.lang-switcher-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lang-switcher-option:hover,
.lang-switcher-option:focus-visible {
    background: rgba(39, 174, 96, 0.14);
    outline: none;
}

.lang-switcher-option.is-active {
    background: rgba(39, 174, 96, 0.18);
    color: var(--color-accent-light);
    font-weight: 600;
}

@media (max-width: 640px) {
    .perfil-hub-header {
        flex-direction: column;
        align-items: stretch;
    }

    .perfil-hub-actions,
    .conta-actions {
        width: 100%;
    }

    .perfil-hub-actions .botao,
    .conta-actions .botao {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        text-align: center;
    }

    .perfil-hub-grid {
        grid-template-columns: 1fr;
    }

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

    .login-box,
    .entrar-box {
        padding: 22px 16px;
    }

    .item-lista .botao {
        width: 100%;
    }

    .loja-product-row {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .loja-project-summary,
    .loja-project-actions {
        padding-left: 0;
    }

    .loja-buy-link {
        margin-left: auto;
    }
}

/* ——— Modern UI layer (touch, motion, polish) ——— */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1024px) {
    .botao,
    .botao-home,
    .mobile-menu-util,
    .mobile-menu-link,
    .nav-top-link,
    .header-profile-link--guest {
        min-height: 44px;
    }

    .header-icon-btn,
    .menu-toggle,
    .lang-switcher-btn {
        min-width: 40px;
        min-height: 40px;
    }

    .site-breadcrumbs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .site-breadcrumbs-list {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

.article-page {
    max-width: var(--max-width-narrow);
}

.empty-message {
    padding: clamp(24px, 4vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(39, 174, 96, 0.25);
    background: rgba(39, 174, 96, 0.06);
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
}

.info-panel,
.highlight,
.highlight-card {
    border-radius: var(--radius-lg);
}

.post-card-cover {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.home-card,
.home-feed-card {
    border-radius: var(--radius-lg);
}

.hero-content h1,
.hero-content p {
    animation: fadeInUp 0.7s var(--transition-smooth) both;
}

.hero-content p {
    animation-delay: 0.08s;
}

.hero-actions {
    animation: fadeInUp 0.7s var(--transition-smooth) 0.14s both;
}

html[data-theme="light"] .post-content blockquote {
    background: rgba(39, 174, 96, 0.06);
}

html[data-theme="light"] .voltar-link {
    background: rgba(39, 174, 96, 0.06);
}

html[data-theme="light"] .empty-message {
    background: rgba(39, 174, 96, 0.04);
}

/* Inspeções — filtro e badges de série */
.inspecoes-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 20px;
}

.inspecoes-filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-soft);
}

.inspecoes-series-filter {
    min-width: 220px;
}

.post-card-badges {
    margin: 0 0 6px;
}

.post-card-series {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    background: rgba(39, 174, 96, 0.16);
    border: 1px solid rgba(39, 174, 96, 0.28);
}

.post-series-badge {
    margin: 20px 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-light);
}

.post-i18n-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--color-text-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-i18n-hint {
    opacity: 0.85;
    font-size: 0.82em;
}

.admin-generated-posts-note {
    margin: 0 0 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.admin-generated-posts-note code {
    font-size: 0.85em;
}
