:root {
    --bg: #07111f;
    --bg-soft: #0d1b2d;
    --surface: rgba(10, 20, 33, 0.78);
    --surface-strong: rgba(13, 26, 43, 0.96);
    --text: #f4f7fb;
    --muted: #9cb2c8;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #ffb347;
    --accent-strong: #ff8f3d;
    --secondary: #59d0ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(89, 208, 255, 0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 179, 71, 0.18), transparent 24%),
        linear-gradient(180deg, #081321 0%, #07111f 46%, #050c16 100%);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.site-shell { width: min(var(--max-width), calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 48px; }

/* Alinha o conteúdo interno do header ao max-width da página */
.site-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: calc(var(--max-width) + 56px); /* 28px padding de cada lado */
    margin: 0 auto;
    padding: 0 28px;
    gap: 0;
}
/* ── Site header (full-width, sticky, estilo Udemy adaptado ao dark theme) ── */
.site-header, .site-footer, .hero, .section, .split-section, .page-hero, .detail-card, .empty-state { backdrop-filter: blur(24px); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 28px;
    height: 68px;
    background: rgba(5, 10, 20, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    border-radius: 0;
    /* remove o border-radius do pill original */
}

/* ── Brand / Logo ─────────────────────────────────────────────────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    white-space: nowrap;
    padding-right: 28px;
}
.brand-icon {
    width: 28px;
    height: 28px;
    color: #a78bfa;
    flex-shrink: 0;
}

/* ── Nav links ────────────────────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.site-nav a {
    padding: 8px 13px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 160ms ease, background 160ms ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ── Barra de busca ───────────────────────────────────────────────────────── */
.nav-search {
    flex: 2 1 0;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 28px;
    max-width: 900px;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0 20px;
    height: 46px;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.nav-search:focus-within {
    border-color: rgba(167, 139, 250, 0.7);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.20);
}
.nav-search-icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex-shrink: 0;
    margin-right: 11px;
}
.nav-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.92rem;
    min-width: 0;
    line-height: 1;
}
.nav-search-input::placeholder { color: var(--muted); }

/* ── Ações à direita ──────────────────────────────────────────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}
.nav-link-subtle {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    border-radius: 8px;
    transition: color 160ms ease, background 160ms ease;
}
.nav-link-subtle:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ── Botão de idioma ──────────────────────────────────────────────────────── */
.nav-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
    margin-left: 4px;
    flex-shrink: 0;
}
.nav-lang-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Dropdown de idioma ───────────────────────────────────────────────────── */
.nav-lang-wrapper {
    position: relative;
}
.nav-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    background: rgba(8, 14, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    z-index: 100;
}
.nav-lang-wrapper:focus-within .nav-lang-dropdown,
.nav-lang-wrapper[data-open] .nav-lang-dropdown { display: block; }
.nav-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--muted);
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
    white-space: nowrap;
}
.nav-lang-option:hover { background: rgba(124, 58, 237, 0.16); color: #fff; }
.nav-lang-option.active { color: #a78bfa; font-weight: 600; }
.nav-lang-option .lang-flag { font-size: 1.1rem; line-height: 1; }

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--muted);
    transition: color 160ms ease, background 160ms ease;
    flex-shrink: 0;
}
.nav-icon-btn svg { width: 20px; height: 20px; }
.nav-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

.button { border-radius: 999px; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-1px); }

.button-ghost-nav {
    padding: 8px 18px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    margin-left: 6px;
    transition: border-color 160ms ease, background 160ms ease, transform 180ms ease;
}
.button-ghost-nav:hover { border-color: rgba(255, 255, 255, 0.38); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }

.button-cta-nav {
    padding: 8px 18px;
    font-size: 0.87rem;
    font-weight: 700;
    color: #0a0414;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    border-radius: 999px;
    margin-left: 4px;
    box-shadow: 0 3px 16px rgba(124, 58, 237, 0.45);
    transition: box-shadow 180ms ease, transform 180ms ease;
    white-space: nowrap;
}
.button-cta-nav:hover { box-shadow: 0 5px 24px rgba(124, 58, 237, 0.65); transform: translateY(-1px); }
.hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; margin-top: 28px;
    padding: 34px; border: 1px solid rgba(124,58,237,0.22); border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(8,3,22,0.97), rgba(10,4,28,0.90)); box-shadow: var(--shadow);
}
.hero-copy h1, .page-hero h1, .section-heading h2, .split-card h2, .detail-card h1 { margin: 0; line-height: 0.98; letter-spacing: -0.04em; }
.hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 5.2rem); max-width: 11ch;
    background: linear-gradient(135deg, #ffffff 20%, #ddd6fe 55%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-copy p, .page-hero p, .feature-card p, .product-card p, .detail-card p, .empty-state p, .site-footer p { color: var(--muted); line-height: 1.6; }
.eyebrow {
    display: inline-flex; margin-bottom: 16px; padding: 7px 14px;
    border: 1px solid rgba(167,139,250,0.35); border-radius: 999px;
    color: #c4b5fd; background: rgba(124,58,237,0.12); text-transform: uppercase;
    letter-spacing: 0.18em; font-size: 0.72rem; font-weight: 700;
    box-shadow: 0 0 12px rgba(124,58,237,0.18);
}
.hero-actions, .product-meta, .price-block { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions { margin: 26px 0 30px; }
.button { padding: 14px 22px; font-weight: 700; border-radius: 999px; transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover, .site-nav .nav-cta:hover { transform: translateY(-2px); }
.button-primary {
    color: #0a0414; background: linear-gradient(135deg, #a78bfa, #7c3aed);
    box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.button-primary:hover { box-shadow: 0 6px 32px rgba(124,58,237,0.6); }
.button-secondary { border: 1px solid rgba(167,139,250,0.25); background: rgba(124,58,237,0.08); color: #ddd6fe; }
.button-secondary:hover { background: rgba(124,58,237,0.16); }
/* ── Hero stats (inline, embaixo dos CTAs) ────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-stats-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

/* ══ Cards de categoria — 3D premium ═══════════════════════════════════════ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    perspective: 1400px;
}
.category-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.09);
    cursor: pointer;
    will-change: transform;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 6px 28px rgba(0,0,0,0.38),
        0 2px 8px rgba(0,0,0,0.28);
    transition:
        transform 320ms cubic-bezier(.22,.68,0,1.18),
        box-shadow 320ms ease,
        border-color 280ms ease;
}
.category-card:hover {
    transform: translateY(-10px) rotateX(2deg) scale(1.015);
    border-color: rgba(255,255,255,0.20);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 28px 72px rgba(0,0,0,0.55),
        0 8px 24px rgba(0,0,0,0.35);
}

/* ── Área visual superior de cada card ─────────────────────── */
.cat-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 158px;
    overflow: hidden;
}

/* glow central difuso */
.cat-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.55;
    border-radius: 50%;
    width: 130px;
    height: 130px;
    margin: auto;
    filter: blur(38px);
    transition: opacity 320ms ease;
}
.category-card:hover .cat-visual::before { opacity: 0.80; }

/* linha de specular no topo */
.cat-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.36) 50%, transparent 100%);
    pointer-events: none;
}

.cat-emoji {
    position: relative;
    z-index: 2;
    font-size: 3.6rem;
    line-height: 1;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55));
    transition: transform 320ms cubic-bezier(.22,.68,0,1.3);
    user-select: none;
}
.category-card:hover .cat-emoji {
    transform: scale(1.18) translateY(-5px);
}

/* Círculo decorativo de fundo */
.cat-visual .cat-deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}

/* ── Backgrounds por tipo ──────────────────────────────────── */
.cat-video .cat-visual {
    background:
        radial-gradient(ellipse at 50% 110%, rgba(109,40,217,0.90) 0%, transparent 62%),
        radial-gradient(ellipse at 15% 15%,  rgba(167,139,250,0.25) 0%, transparent 45%),
        linear-gradient(160deg, #07031a 0%, #160840 50%, #280f72 100%);
}
.cat-video .cat-visual::before { background: #7c3aed; }

.cat-sheet .cat-visual {
    background:
        radial-gradient(ellipse at 50% 110%, rgba(180,83,9,0.90) 0%, transparent 62%),
        radial-gradient(ellipse at 85% 15%,  rgba(251,191,36,0.22) 0%, transparent 45%),
        linear-gradient(160deg, #120800 0%, #3a1500 50%, #6b2800 100%);
}
.cat-sheet .cat-visual::before { background: #d97706; }

.cat-playback .cat-visual {
    background:
        radial-gradient(ellipse at 50% 110%, rgba(4,120,87,0.90) 0%, transparent 62%),
        radial-gradient(ellipse at 15% 15%,  rgba(52,211,153,0.20) 0%, transparent 45%),
        linear-gradient(160deg, #001510 0%, #012c1e 50%, #034d36 100%);
}
.cat-playback .cat-visual::before { background: #059669; }

.cat-bundle .cat-visual {
    background:
        radial-gradient(ellipse at 50% 110%, rgba(157,23,77,0.90) 0%, transparent 62%),
        radial-gradient(ellipse at 85% 15%,  rgba(244,114,182,0.20) 0%, transparent 45%),
        linear-gradient(160deg, #14000e 0%, #360020 50%, #640040 100%);
}
.cat-bundle .cat-visual::before { background: #db2777; }

/* ── Corpo de texto ────────────────────────────────────────── */
.cat-body {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 18px;
    background: linear-gradient(180deg, rgba(10,16,28,0.97) 0%, rgba(7,12,22,1) 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    flex: 1;
    gap: 0;
}
.cat-body h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}
.cat-body p {
    margin: 0 0 16px;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
}
.cat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.cat-badge {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.45);
    transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.category-card:hover .cat-badge {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.18);
}
.cat-arrow {
    font-size: 1rem;
    color: rgba(255,255,255,0.22);
    transition: transform 260ms ease, color 260ms ease;
    line-height: 1;
}
.category-card:hover .cat-arrow {
    transform: translateX(5px);
    color: rgba(255,255,255,0.65);
}

/* ── Product card — link de ação ───────────────────────────────────────────── */
.product-link { font-size: 0.88rem; font-weight: 600; color: #a78bfa; transition: color 140ms ease; }
.product-link:hover { color: #c4b5fd; }

/* ── CTA Banner final ──────────────────────────────────────────────────────── */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 36px 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1e0a4c 0%, #2d0f6b 50%, #1a0840 100%);
    border: 1px solid rgba(124,58,237,0.35);
    box-shadow: 0 0 60px rgba(124,58,237,0.15);
}
.cta-banner-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}
.cta-banner-copy p { margin: 0; color: #c4b5fd; font-size: 1rem; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }

/* ── Outros cards (sem mudança) ────────────────────────────────────────────── */
.feature-card, .product-card, .split-card, .detail-card, .empty-state { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.hero-visual {
    position: relative; min-height: 480px; overflow: hidden; border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse at 50% 50%, rgba(109,40,217,0.22) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 20%, rgba(167,139,250,0.12) 0%, transparent 40%),
        linear-gradient(160deg, #0a0420 0%, #060214 100%);
    border: 1px solid rgba(124,58,237,0.28);
}
/* ── Three.js canvas ────────────────────────────────────────────────────── */
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.hero-visual-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(124,58,237,0.35), transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(167,139,250,0.2), transparent 40%),
        radial-gradient(ellipse at 75% 30%, rgba(251,191,36,0.12), transparent 35%);
}
@media (prefers-reduced-motion: reduce) {
    .hero-canvas { display: none; }
    .hero-visual-fallback { display: block !important; }
}
.glass-card {
    position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 22px 24px;
    border: 1px solid rgba(139,92,246,0.3); border-radius: var(--radius-lg);
    background: rgba(4,2,16,0.72); box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
}
.glass-card span { color: #a78bfa; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; }
.glass-card strong { display: block; margin: 10px 0 6px; font-size: 1.3rem; line-height: 1.25; }
.glass-card p { margin: 0; font-size: 0.9rem; }
.section, .split-section, .page-hero, .detail-layout { margin-top: 24px; }
.section { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(8, 17, 30, 0.72); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2, .split-card h2, .page-hero h1, .detail-card h1 { font-size: clamp(1.8rem, 3vw, 3rem); }
.feature-grid, .product-grid, .split-section, .detail-layout { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .product-card, .split-card, .detail-card, .empty-state { padding: 22px; }
.feature-icon {
    display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
    border-radius: 14px; background: rgba(255, 179, 71, 0.14); color: var(--accent); font-size: 1.35rem;
}
.product-card { display: flex; flex-direction: column; min-height: 240px; }
.product-label {
    align-self: flex-start; margin-bottom: 16px; padding: 7px 12px; border-radius: 999px;
    background: rgba(89, 208, 255, 0.14); color: var(--secondary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.product-meta { margin-top: auto; justify-content: space-between; }
.product-meta span, .price-block strong { font-size: 1.1rem; font-weight: 700; }
.split-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip-list, .stack-list { padding: 0; margin: 0; list-style: none; }
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }
.chip-list small { color: var(--muted); }
.page { padding-top: 18px; }
.page.narrow { max-width: 880px; }
.page-hero { padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(8,17,30,0.72); }
.page-hero.compact h1 { font-size: clamp(2rem, 3vw, 3.4rem); }
.detail-layout { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); }
.detail-card.muted { background: rgba(255,255,255,0.04); }
.stack-list li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
/* ══ Ícones sociais no header ═══════════════════════════════════════════════ */
.nav-social {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 4px;
    padding: 0 6px;
    border-left: 1px solid rgba(255,255,255,0.09);
    border-right: 1px solid rgba(255,255,255,0.09);
}
.nav-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--muted);
    transition: color 160ms ease, background 160ms ease;
}
.nav-social-btn svg { width: 15px; height: 15px; }
.nav-social-btn:hover { background: rgba(255,255,255,0.07); }
.nav-social-btn[aria-label="YouTube"]:hover    { color: #ff4444; }
.nav-social-btn[aria-label="Instagram"]:hover  { color: #e1306c; }
.nav-social-btn[aria-label="Facebook"]:hover   { color: #4267b2; }

/* ══ Footer profissional ════════════════════════════════════════════════════ */
.site-footer {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    margin-top: 28px;
    padding: 48px 40px 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(4, 8, 18, 0.96);
    border-top: 1px solid rgba(124,58,237,0.18);
}

/* Coluna da marca */
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.footer-logo svg { width: 26px; height: 26px; color: #a78bfa; flex-shrink: 0; }
.footer-brand p { margin: 0; font-size: 0.87rem; color: var(--muted); line-height: 1.6; max-width: 24ch; }

/* Ícones sociais no footer */
.footer-social { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.footer-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.footer-social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-social-btn:hover { border-color: rgba(255,255,255,0.18); color: #fff; }
.footer-social-btn.youtube:hover    { background: rgba(255,68,68,0.12);  border-color: rgba(255,68,68,0.3);  color: #ff6b6b; }
.footer-social-btn.instagram:hover  { background: rgba(225,48,108,0.12); border-color: rgba(225,48,108,0.3); color: #f472b6; }
.footer-social-btn.facebook:hover   { background: rgba(66,103,178,0.12); border-color: rgba(66,103,178,0.3); color: #60a5fa; }

/* Colunas de links */
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.55);
}
.footer-nav { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.88rem; color: var(--muted); transition: color 140ms ease; }
.footer-nav a:hover { color: #fff; }

/* Barra de copyright */
.footer-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 40px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.28);
}
.footer-bottom-sep { opacity: 0.4; }
@media (max-width: 980px) {
    .hero, .feature-grid, .product-grid, .split-section, .detail-layout { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-banner { flex-direction: column; align-items: flex-start; padding: 28px; }
    .site-footer { grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px 28px; }
    .footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 24px; }
    .footer-brand p { max-width: none; }
    .footer-social { flex-direction: row; flex-wrap: wrap; }
    .footer-bottom { padding: 16px 28px; }
}
@media (max-width: 860px) {
    .nav-link-subtle { display: none; }
    .nav-social { display: none; }
}
@media (max-width: 720px) {
    .site-shell { width: min(var(--max-width), calc(100vw - 20px)); }
    .site-header-inner { padding: 0 16px; gap: 0; }
    .site-nav { display: none; }
    .nav-search { margin: 0 10px; min-width: 0; }
    .site-footer { grid-template-columns: 1fr; padding: 28px 20px; border-radius: var(--radius-xl); }
    .footer-brand { flex-direction: column; }
    .footer-social { flex-direction: column; }
    .footer-bottom { padding: 12px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .footer-bottom-sep { display: none; }
    .section, .page-hero, .hero { padding: 18px; }
    .hero-copy h1 { max-width: none; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 14px; }
    .hero-stats-sep { display: none; }
}
@media (max-width: 600px) {
    .nav-lang-wrapper { display: none; }
    .button-ghost-nav { display: none; }
    .button-cta-nav.nav-cta-signup { font-size: 0.8rem; padding: 9px 14px; margin-left: 4px; }
    .section-heading { flex-wrap: wrap; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
    /* Header mínimo: logo + busca + carrinho + entrar */
    .brand span { display: none; }
    .brand { padding-right: 12px; }
    .nav-search { margin: 0 8px; }
    .nav-right { gap: 2px; }
    .category-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .feature-card, .product-card, .split-card, .detail-card { padding: 16px; }
}

/* ── Menu do usuário autenticado ─────────────────────────────────────────── */
.nav-user-wrapper { position: relative; margin-left: 6px; }

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease;
}
.nav-user-btn:hover { border-color: rgba(167,139,250,0.5); background: rgba(124,58,237,0.10); }
.nav-user-chevron { width: 10px; height: 6px; flex-shrink: 0; transition: transform 200ms ease; }

.nav-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}
.nav-user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: rgba(8, 14, 26, 0.98);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    backdrop-filter: blur(20px);
    z-index: 100;
}
.nav-user-wrapper[data-open] .nav-user-dropdown { display: block; }

.nav-user-greeting {
    padding: 10px 12px 8px;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}
.nav-user-greeting strong { color: var(--text); font-weight: 700; }

.nav-user-sep { height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0; }

.nav-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--muted);
    transition: background 140ms ease, color 140ms ease;
    white-space: nowrap;
}
.nav-user-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-user-item:hover { background: rgba(124,58,237,0.14); color: #fff; }
.nav-user-item--danger:hover { background: rgba(248,113,113,0.12); color: #fca5a5; }

/* ── Auth forms (allauth) ────────────────────────────────────────────────── */
.auth-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px 80px;
    min-height: 60vh;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 40px 36px;
    backdrop-filter: blur(24px);
}
.auth-card h1 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.auth-card .auth-subtitle {
    margin: 0 0 28px;
    font-size: 0.9rem;
    color: var(--muted);
}
.auth-card .auth-subtitle a { color: var(--secondary); }
.auth-card .auth-subtitle a:hover { text-decoration: underline; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.form-field input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 160ms ease, background 160ms ease;
    outline: none;
}
.form-field input:focus {
    border-color: rgba(124, 58, 237, 0.7);
    background: rgba(255,255,255,0.07);
}
.form-field input::placeholder { color: var(--muted); }
.form-field .errorlist {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    font-size: 0.82rem;
    color: #f87171;
}
.form-field .helptext { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.form-field-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.form-field-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: #7c3aed; cursor: pointer; }
.form-field-check label { font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.auth-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.auth-actions .button { width: 100%; text-align: center; padding: 14px; font-size: 1rem; border-radius: 12px; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: rgba(255,255,255,0.25);
    font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-extra {
    margin-top: 20px;
    text-align: center;
    font-size: 0.86rem;
    color: var(--muted);
}
.auth-extra a { color: var(--secondary); }
.auth-extra a:hover { text-decoration: underline; }
.auth-forgot { text-align: right; margin-top: -10px; margin-bottom: 18px; font-size: 0.83rem; }
.auth-forgot a { color: var(--muted); transition: color 140ms ease; }
.auth-forgot a:hover { color: var(--secondary); }
.auth-messages { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.auth-messages li {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}
.auth-messages li.success {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}
@media (max-width: 500px) {
    .auth-card { padding: 28px 20px 24px; }
}

/* ── Auth card — cabeçalho com ícone ─────────────────────────────────────── */
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.16);
    color: #a78bfa;
    margin-bottom: 16px;
}
.auth-brand-icon svg { width: 28px; height: 28px; }
.auth-head h1 { margin: 0 0 6px; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.025em; }
.auth-submit-btn { width: 100%; padding: 14px; font-size: 1rem; border-radius: 12px; margin-top: 6px; border: none; cursor: pointer; }
.auth-legal { margin-top: 18px; text-align: center; font-size: 0.76rem; color: rgba(255,255,255,0.28); line-height: 1.6; }
.auth-legal a { color: rgba(255,255,255,0.45); text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover { color: var(--secondary); }

/* ── Campo de senha com toggle ───────────────────────────────────────────── */
.pass-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.pass-label-row label { margin: 0; }
.pass-strength-label { font-size: 0.78rem; font-weight: 700; transition: color 200ms ease; }
.pass-input-wrap { position: relative; }
.pass-input-wrap input { padding-right: 44px; }
.pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 140ms ease;
}
.pass-toggle:hover { color: var(--text); }
.pass-toggle svg { width: 18px; height: 18px; }

/* ── Barra de força da senha ─────────────────────────────────────────────── */
.pass-bar-wrap { margin-top: 8px; }
.pass-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.pass-bar-fill { height: 100%; border-radius: 99px; transition: width 260ms ease, background 260ms ease; }

/* ── Feedback inline de campo ────────────────────────────────────────────── */
.field-hint { display: block; font-size: 0.8rem; margin-top: 5px; }
.field-hint--error { color: #f87171; }
.field-hint--ok { color: #34d399; }
.field-hint--error a { color: #f87171; text-decoration: underline; text-underline-offset: 2px; }
.field-hint--error a:hover { color: #fca5a5; }
