:root {
    --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
    --font-display: "Outfit", var(--font-sans);
    --bg: #f3f5f9;
    --bg-elevated: #ffffff;
    --panel: #ffffff;
    --panel-soft: #e8ecf4;
    --text: #0b1220;
    --muted: #5c6578;
    --border: rgba(15, 23, 42, 0.08);
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --primary-dark: #1d4ed8;
    --accent: #0ea5e9;
    --hero-ink: #0f172a;
    --danger: #dc2626;
    --warning: #d97706;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    touch-action: manipulation;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(760px, calc(100% - 32px));
}

.row {
    display: flex;
}

.between {
    justify-content: space-between;
}

.center {
    align-items: center;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px) saturate(1.2);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--border);
}

.topbar .container {
    padding: 18px 0;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.brand.has-logo {
    letter-spacing: normal;
    font-weight: 600;
}

.brand-logo-img {
    display: block;
    max-height: 40px;
    width: auto;
    max-width: min(200px, 42vw);
    height: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
}

.nav a:hover {
    color: var(--primary);
}

.page {
    padding-bottom: 64px;
}

.hero {
    position: relative;
    padding: 56px 0 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 85%;
    background:
        radial-gradient(ellipse 70% 55% at 18% 35%, rgba(37, 99, 235, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 45% at 82% 20%, rgba(14, 165, 233, 0.12), transparent 50%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(15, 23, 42, 0.04), transparent 45%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.section {
    padding: 56px 0;
}

.section-about {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
}

.section-modules {
    background: linear-gradient(180deg, #eef2f8 0%, #e2e8f0 48%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-cases {
    background: var(--bg-elevated);
}

.section-contact {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(238, 242, 248, 0.9) 100%);
    border-top: 1px solid var(--border);
}

.contact-panel {
    margin-top: 8px;
}

.contact-note {
    margin: 0;
    font-size: 0.95rem;
}

.contact-hint {
    margin: -4px 0 4px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(11, 18, 32, 0.52);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.contact-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-modal {
    width: min(420px, 100%);
    padding: 28px 26px 24px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-overlay.is-open .contact-modal {
    transform: translateY(0) scale(1);
}

.contact-modal--loading {
    padding: 36px 32px;
}

.contact-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid var(--primary-soft);
    border-top-color: var(--primary);
    animation: contact-spin 0.75s linear infinite;
}

@keyframes contact-spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-loading-text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.contact-result-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.contact-result-message {
    margin: 0 0 22px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--muted);
}

.contact-modal--result.contact-modal--success .contact-result-title {
    color: #15803d;
}

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

.contact-result-close {
    width: 100%;
    max-width: 280px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 20px 0 28px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.6);
}

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

.footer-copyright {
    margin: 0 0 12px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.footer-lang {
    margin: 0;
    font-size: 0.88rem;
}

.footer-lang a {
    color: var(--muted);
    font-weight: 600;
}

.footer-lang a:hover {
    color: var(--primary);
}

.section-header--tight p {
    max-width: 38rem;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0 4px;
}

.modules-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.module-cell {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    min-width: 0;
}

.module-cell:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.module-cell-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
}

.module-cell-icon .module-icon-svg {
    display: block;
    width: 24px;
    height: 24px;
}

.module-cell-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.module-cell-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--hero-ink);
    letter-spacing: -0.02em;
}

.module-cell-desc {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 500;
}

@media (max-width: 720px) {
    .modules-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .module-cell {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 10px;
        gap: 10px;
        border-radius: 16px;
    }

    .module-cell-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .module-cell-icon .module-icon-svg {
        width: 22px;
        height: 22px;
    }

    .module-cell-title {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .module-cell-desc {
        font-size: 0.72rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.cases-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    align-items: center;
    justify-content: center;
    padding: 12px 0 8px;
}

.case-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #ffffff;
    min-height: 96px;
    min-width: 140px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.case-logo-link:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

.case-logo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    max-height: 72px;
}

.case-logo-img {
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.08) opacity(0.92);
}

.cases-empty {
    text-align: center;
    padding: 12px 0 24px;
}

.cases-admin-new {
    margin-bottom: 32px;
}

.cases-admin-heading {
    margin: 0 0 16px;
}

.cases-admin-list {
    display: grid;
    gap: 20px;
}

.cases-admin-row {
    display: grid;
    gap: 12px;
    position: relative;
}

.cases-admin-form {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
}

.cases-admin-preview {
    width: 140px;
    height: 100px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.cases-admin-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cases-delete-form {
    justify-self: end;
}

.cases-admin-actions {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .cases-admin-form {
        grid-template-columns: 1fr;
    }

    .cases-admin-preview {
        width: 100%;
        max-width: 200px;
    }
}

.hero-grid,
.admin-grid,
.stats-grid,
.plan-grid {
    display: grid;
    gap: 24px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: min(78vh, 720px);
    gap: 32px;
}

.hero h1,
.section h2,
.panel h1,
.dashboard-head h1 {
    margin: 0 0 14px;
    line-height: 1.05;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.2vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--hero-ink);
    max-width: min(38rem, 100%);
}

.section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.55rem, 3.4vw, 2.05rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--hero-ink);
}

.panel h1,
.dashboard-head h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead,
.section-header p,
.muted {
    color: var(--muted);
}

.hero .lead {
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 32rem;
    font-weight: 400;
}

.section-header p {
    font-size: 1.02rem;
    line-height: 1.5;
    max-width: 40rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.actions,
.admin-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
}

.button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

.button.primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.42);
}

.button.ghost {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
}

.button.full {
    width: 100%;
}

.hero-card,
.panel,
.plan-card,
.stat-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.hero-card--visual {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.hero-card--photo {
    padding: 12px;
    background: #ffffff;
}

.hero-card:not(.hero-card--visual),
.panel,
.stat-card {
    padding: 24px;
}

.hero-card.hero-card--photo {
    padding: 12px;
}

.plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
    padding: 28px;
}

.plan-card.featured {
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-10px);
}

.plan-badge {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.price {
    margin: 16px 0;
    font-size: 2rem;
    font-weight: 800;
}

.price small {
    font-size: 0.95rem;
    color: var(--muted);
}

.section-header {
    max-width: 740px;
    margin-bottom: 26px;
}

.section-header h2,
.panel h2 {
    color: var(--text);
}

.mock-block {
    display: grid;
    gap: 14px;
}

.mock-line {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 128, 237, 0.7), rgba(47, 128, 237, 0.08));
}

.mock-line.wide {
    height: 160px;
    border-radius: 20px;
}

.hero-image {
    border-radius: 16px;
    width: 100%;
    min-height: 280px;
    max-height: 420px;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.hero-card--slider {
    padding: 10px;
    overflow: visible;
    background: #ffffff;
}

.hero-slider {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

.hero-slider-slides {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 420px;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.hero-slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    z-index: 0;
}

.hero-slider-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slider-slide-frame {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
}

.hero-slider-slide-frame:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hero-slider-slide-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: var(--hero-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
    transition: background 0.15s ease, transform 0.15s ease;
}

.hero-slider-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.04);
}

.hero-slider-prev {
    left: 10px;
}

.hero-slider-next {
    right: 10px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
}

.hero-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider-dot.is-active {
    background: #ffffff;
    transform: scale(1.35);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.55);
}

.hero-slider--single .hero-slider-btn,
.hero-slider--single .hero-slider-dots {
    display: none;
}

/* Lightbox: imagem do hero em tamanho completo */
.hero-lightbox {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(11, 18, 32, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.hero-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-lightbox-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 0;
}

.hero-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1280px);
    max-height: min(90vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: min(88vh, 860px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.hero-lightbox-close {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: background 0.15s ease, transform 0.15s ease;
}

.hero-lightbox-close:hover {
    background: rgba(30, 41, 59, 0.98);
    transform: scale(1.05);
}

.hero-lightbox-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-lightbox-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.hero-lightbox-open {
    overflow: hidden;
}

.hero-slides-upload-panel {
    margin-bottom: 8px;
}

.hero-slides-list-title {
    margin: 32px 0 8px;
}

.hero-slides-hint {
    margin-bottom: 18px;
}

.hero-slides-admin-list {
    display: grid;
    gap: 20px;
}

.hero-slide-admin-card {
    display: grid;
    grid-template-columns: minmax(0, 200px) 1fr auto;
    gap: 18px;
    align-items: start;
}

.hero-slide-admin-preview {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f1f5f9;
}

.hero-slide-admin-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

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

.hero-slide-delete-form {
    align-self: start;
}

@media (max-width: 720px) {
    .hero-slide-admin-card {
        grid-template-columns: 1fr;
    }

    .hero-slide-delete-form {
        justify-self: start;
    }
}

/* Fallback visual: mock do painel (sem imagem hero) */
.hero-visual {
    position: relative;
    min-height: 320px;
    padding: 28px 24px 32px;
}

.hero-visual-glow {
    position: absolute;
    inset: 10% 5% 15% 15%;
    background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.2), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(14, 165, 233, 0.15), transparent 45%);
    filter: blur(32px);
    opacity: 0.9;
    pointer-events: none;
}

.hero-visual-shell {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    animation: hero-float 7s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-visual-chrome {
    display: flex;
    gap: 6px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
}

.hero-visual-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.hero-visual-chrome span:first-child {
    background: #fb7185;
}

.hero-visual-chrome span:nth-child(2) {
    background: #fbbf24;
}

.hero-visual-chrome span:nth-child(3) {
    background: #34d399;
}

.hero-visual-body {
    display: grid;
    grid-template-columns: 72px 1fr;
    min-height: 240px;
}

.hero-visual-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 10px;
    background: #fafbfc;
    border-right: 1px solid var(--border);
}

.hv-sb-item {
    height: 8px;
    border-radius: 6px;
    background: #e2e8f0;
    opacity: 0.65;
}

.hv-sb-item.hv-sb-short {
    width: 70%;
}

.hv-sb-active {
    background: linear-gradient(90deg, var(--primary-soft), rgba(37, 99, 235, 0.06));
    box-shadow: inset 3px 0 0 var(--primary);
    opacity: 1;
}

.hv-sb-spacer {
    flex: 1;
    min-height: 12px;
}

.hero-visual-stage {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
}

.hv-top {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hv-pill {
    height: 28px;
    width: 88px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hv-pill-muted {
    width: 64px;
    background: #f1f5f9;
    border-color: transparent;
}

.hv-grid-mock {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    flex: 1;
    align-content: start;
}

.hv-tile {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
}

.hv-tile-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.hv-bar {
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
    width: 100%;
}

.hv-bar-sm {
    width: 55%;
}

.hv-bar-xs {
    width: 70%;
}

.hv-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 4px solid var(--primary-soft);
    border-top-color: var(--primary);
    margin-bottom: 4px;
}

.hv-spark {
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.1));
}

.hv-tile-accent {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.08);
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
}

.hv-accent-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #94a3b8;
    text-transform: uppercase;
}

.hv-live-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.hv-live-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

.hv-live-dots i:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--accent);
}

.hv-live-dots i:nth-child(3) {
    animation-delay: 0.4s;
    background: #a78bfa;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 920px) {
    .hero-visual-body {
        grid-template-columns: 56px 1fr;
    }

    .hv-grid-mock {
        grid-template-columns: 1fr 1fr;
    }

    .hv-tile-wide {
        grid-column: 1 / -1;
    }
}

.stack {
    display: grid;
    gap: 16px;
}

.two-cols {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox input {
    width: auto;
}

.alert {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.alert.success {
    background: #eaf5ff;
    color: #1f5faa;
}

.alert.error {
    background: #fff1f1;
    color: #b53d3d;
}

.dashboard-head {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
}

.stat-card strong {
    font-size: 1.6rem;
}

.admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thread-list,
.message-list,
.media-grid {
    display: grid;
    gap: 12px;
}

.thread-item,
.message,
.mini-panel,
.media-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfdff;
}

.mini-panel summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.details-content {
    margin-top: 16px;
}

.thread-item.active {
    border-color: rgba(47, 128, 237, 0.45);
    background: #eef5ff;
}

.thread-item span,
.detail-row span {
    color: var(--muted);
}

.message.admin {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.06);
}

.message.customer {
    border-color: rgba(148, 163, 184, 0.2);
    background: #ffffff;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    color: var(--muted);
    background: #f8fbff;
}

.media-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 14px;
}

.media-card img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.install-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.plan-inline {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

@media (max-width: 920px) {
    .hero-grid,
    .plan-grid,
    .stats-grid,
    .admin-grid,
    .two-cols {
        grid-template-columns: 1fr;
    }

    .dashboard-head {
        flex-direction: column;
        align-items: start;
    }
}

/* Admin → SEO: uploads e pré-visualização */
.label-like {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 10px;
    color: var(--text);
}

.seo-preview-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 12px;
}

.seo-preview {
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border);
    object-fit: contain;
    background: var(--panel-soft);
}

.seo-preview--favicon {
    width: 64px;
    height: 64px;
    padding: 8px;
}

.seo-preview--og {
    max-width: 100%;
    width: min(400px, 100%);
    max-height: 210px;
}

.file-input-label input[type="file"] {
    margin-top: 6px;
    font-size: 0.9rem;
    width: 100%;
}
