/* =============================================================
   SITE HEADER V4 — extracted from index4 proposal
   ============================================================= */

.rh4-hd {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(7, 0, 18, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: inherit;
}
.rh4-hd.is-scrolled {
    background: rgba(7, 0, 18, 0.96);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ============= TOP STRIP ============= */
.rh4-hd-top {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
}
.rh4-hd-top-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.rh4-hd-top-left,
.rh4-hd-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.55);
}
.rh4-hd-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-decoration: none;
    transition: color 200ms ease;
}
.rh4-hd-status:hover { color: #fff; text-decoration: none; }
.rh4-hd-status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 4px rgba(40, 200, 64, 0.5);
    animation: rh4-hd-pulse 2.4s ease-in-out infinite;
}
@keyframes rh4-hd-pulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.45; }
}
.rh4-hd-trust { color: rgba(255, 255, 255, 0.5); }
.rh4-hd-sep { color: rgba(255, 255, 255, 0.2); }

.rh4-hd-tlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 500;
    transition: color 200ms ease;
}
.rh4-hd-tlink:hover { color: #fff; text-decoration: none; }

/* Top-strip lang */
.rh4-hd-lang { position: relative; }
.rh4-hd-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.65);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 180ms ease;
}
.rh4-hd-lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.rh4-hd-lang-pop {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: rgba(20, 5, 40, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 110;
}
.rh4-hd-lang.is-open .rh4-hd-lang-pop { display: block; }
.rh4-hd-lang-pop a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    transition: all 150ms ease;
}
.rh4-hd-lang-pop a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.rh4-hd-lang-pop a.is-active { background: rgba(138, 43, 214, 0.18); color: #fff; font-weight: 600; }

/* Carrinho mini no top strip — espelha o chip do WHMCS pra continuidade
   visual marketing→painel. Hidratado via cookie rh-cart-count (set pelo WHMCS). */
.rh4-hd-cart-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}
.rh4-hd-cart-mini:hover {
    color: #fff;
    background: rgba(184, 85, 255, 0.14);
    border-color: rgba(184, 85, 255, 0.30);
    text-decoration: none;
    transform: translateY(-1px);
}
.rh4-hd-cart-mini svg { opacity: 0.85; }
.rh4-hd-cart-label { letter-spacing: 0.02em; }
.rh4-hd-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8a2bd6, #b855ff);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(138, 43, 214, 0.40);
}
.rh4-hd-cart-badge.is-empty {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}
[data-theme="light"] .rh4-hd-cart-mini {
    color: rgba(13, 10, 31, 0.65);
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
}
[data-theme="light"] .rh4-hd-cart-mini:hover {
    color: #6a1ab0;
    background: rgba(106, 26, 176, 0.06);
    border-color: rgba(106, 26, 176, 0.22);
}
[data-theme="light"] .rh4-hd-cart-badge {
    background: linear-gradient(135deg, #6a1ab0, #8a2bd6);
    box-shadow: 0 2px 6px rgba(106, 26, 176, 0.35);
}
[data-theme="light"] .rh4-hd-cart-badge.is-empty {
    background: rgba(13, 10, 31, 0.08);
    color: rgba(13, 10, 31, 0.50);
    box-shadow: none;
}
@media (max-width: 640px) {
    .rh4-hd-cart-label { display: none; }
}

/* ============= MAIN BAR ============= */
.rh4-hd-main-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Brand — real logo with theme-aware variants */
.rh4-hd-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.rh4-hd-logo {
    height: 34px;
    width: auto;
    max-width: 160px;
    display: block;
}
.rh4-hd-logo--light { display: none; }
html[data-theme="light"] .rh4-hd-logo--dark  { display: none; }
html[data-theme="light"] .rh4-hd-logo--light { display: block; }

/* Primary nav */
.rh4-hd-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
/* position: relative pra ancorar o mega menu no botão de trigger.
   Resultado: dropdown abre ALINHADO À ESQUERDA do label ("Produtos" /
   "Soluções"), não centralizado na navbar inteira. */
.rh4-hd-nav-item { position: relative; }

.rh4-hd-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 180ms ease;
    white-space: nowrap;
}
.rh4-hd-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.rh4-hd-nav-link svg { transition: transform 200ms ease; opacity: 0.65; }
.rh4-hd-nav-item:hover .rh4-hd-nav-link svg { transform: rotate(180deg); }

/* MEGA dropdown — ancorado abaixo do trigger ("Produtos" / "Soluções").
   left: -16px desloca pra fora do padding do nav-link, alinhando visualmente
   a borda esquerda do mega ao texto do label. */
.rh4-hd-mega {
    position: absolute;
    top: calc(100% + 8px);
    left: -16px;
    min-width: 1140px;
    background: rgba(15, 4, 30, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    z-index: 95;
}
.rh4-hd-nav-item:hover .rh4-hd-mega,
.rh4-hd-nav-item:focus-within .rh4-hd-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 0s;
}
.rh4-hd-mega--sm { min-width: 520px; }

.rh4-hd-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr);
    gap: 28px;
}
.rh4-hd-mega-grid--2 { grid-template-columns: 1fr 1fr; }

.rh4-hd-mega-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rh4-hd-mega-h {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    padding: 0 10px;
}
.rh4-hd-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: background 150ms ease;
}
.rh4-hd-mega-item:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}
.rh4-hd-mega-item span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rh4-hd-mega-item strong {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.rh4-hd-mega-item em {
    font-size: 12px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}
.rh4-hd-mega-ico {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    transition: all 180ms ease;
}
.rh4-hd-mega-ico svg { width: 18px; height: 18px; display: block; }
.rh4-hd-mega-item:hover .rh4-hd-mega-ico {
    background: rgba(138, 43, 214, 0.15);
    border-color: rgba(138, 43, 214, 0.3);
    color: #fff;
}

/* Featured tile in mega */
.rh4-hd-mega-feature {
    background: linear-gradient(135deg, rgba(138, 43, 214, 0.15) 0%, rgba(1, 250, 213, 0.06) 100%);
    border: 1px solid rgba(138, 43, 214, 0.25);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rh4-hd-mega-tag {
    align-self: flex-start;
    padding: 3px 8px;
    background: rgba(1, 250, 213, 0.15);
    color: #01fad5;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Featured mega menu item — highlights the priority product (Agente IA WhatsApp) */
/* Solid purple in both themes — text and icon stay white for max contrast. */
.rh4-hd-mega-item--featured {
    background: #8a2bd6;
    border: 1px solid #8a2bd6;
}
.rh4-hd-mega-item--featured:hover {
    background: #7322bd;
    border-color: #7322bd;
}
.rh4-hd-mega-item--featured strong { color: #fff !important; }
/* Compound selector .rh4-hd-mega-item--featured.rh4-hd-mega-item — sobe a especificidade pra (0,2,1) */
/* assim vence o base .rh4-hd-mega-item em (0,1,1). Sem !important, o badge ganha. */
.rh4-hd-mega-item--featured.rh4-hd-mega-item em { color: rgba(255, 255, 255, 0.85); }
.rh4-hd-mega-item--featured .rh4-hd-mega-ico {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
}
.rh4-hd-mega-item--featured:hover .rh4-hd-mega-ico {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}
html[data-theme="light"] .rh4-hd-mega-item--featured {
    background: #6a1ab0;
    border-color: #6a1ab0;
}
html[data-theme="light"] .rh4-hd-mega-item--featured:hover {
    background: #5710a0;
    border-color: #5710a0;
}
html[data-theme="light"] .rh4-hd-mega-item--featured strong { color: #fff !important; }
/* Mesmo compound trick — sobe pra (0,3,2), vence o base light em (0,2,2) que está no fim do arquivo. */
/* Badge continua ganhando com !important. */
html[data-theme="light"] .rh4-hd-mega-item--featured.rh4-hd-mega-item em { color: rgba(255, 255, 255, 0.92); }

/* Inline NOVO badge inside menu item title — branco com texto roxo, alta legibilidade no fundo roxo. */
/* !important sobre color porque .rh4-hd-mega-item em (especificidade 0,1,1) sobrescreveria. */
.rh4-hd-mega-tag-inline {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    background: #fff !important;
    color: #6a1ab0 !important;
    border-radius: 4px;
    font-size: 9px !important;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1.4;
}
.rh4-hd-mega-feature strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.rh4-hd-mega-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.5;
}
.rh4-hd-mega-cta {
    margin-top: auto;
    color: #01fad5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.rh4-hd-mega-cta:hover { color: #fff; text-decoration: none; }

/* Right actions */
.rh4-hd-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
/* Inline expandable search ----------------------- */
.rh4-hd-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition:
        width 360ms cubic-bezier(0.16, 1, 0.3, 1),
        background 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}
.rh4-hd-search:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}
.rh4-hd-search.is-open {
    width: 320px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(138, 43, 214, 0.5);
    box-shadow:
        0 0 0 4px rgba(138, 43, 214, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: visible;
}
.rh4-hd-search-trigger {
    width: 36px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 180ms ease;
}
.rh4-hd-search-trigger:hover { color: #fff; }
.rh4-hd-search.is-open .rh4-hd-search-trigger { color: #c39bff; pointer-events: none; }

/* Override global input[type=text] styling from rollin-theme.css */
.rh4-hd-search input.rh4-hd-search-input,
.rh4-hd-search input.rh4-hd-search-input:focus,
.rh4-hd-search input.rh4-hd-search-input:hover {
    flex: 1 !important;
    height: 34px !important;
    min-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 14px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease 100ms, padding 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.rh4-hd-search.is-open input.rh4-hd-search-input {
    opacity: 1;
    pointer-events: auto;
    padding: 0 8px !important;
}
.rh4-hd-search-input::placeholder { color: rgba(255, 255, 255, 0.4) !important; }
/* Kill webkit native search adornments */
.rh4-hd-search-input::-webkit-search-decoration,
.rh4-hd-search-input::-webkit-search-cancel-button,
.rh4-hd-search-input::-webkit-search-results-button,
.rh4-hd-search-input::-webkit-search-results-decoration { -webkit-appearance: none; display: none; }

.rh4-hd-search-close {
    width: 0;
    height: 34px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transition: width 220ms ease, opacity 180ms ease, color 180ms ease, margin-right 220ms ease;
}
.rh4-hd-search-close:hover { color: #fff; }
.rh4-hd-search.is-open.has-query .rh4-hd-search-close {
    width: 28px;
    opacity: 1;
    margin-right: 4px;
}

/* Suggestions popover */
.rh4-hd-search-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: rgba(15, 4, 30, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
}
.rh4-hd-search.is-open .rh4-hd-search-pop {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.rh4-hd-search-poph {
    display: block;
    padding: 6px 10px 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
}
.rh4-hd-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: background 150ms ease;
}
.rh4-hd-search-item:hover {
    background: rgba(138, 43, 214, 0.12);
    text-decoration: none;
}
.rh4-hd-search-item span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.rh4-hd-search-item strong {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.rh4-hd-search-item em {
    font-size: 11px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.5);
}
.rh4-hd-search-ico {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 180ms ease;
}
.rh4-hd-search-ico svg { width: 16px; height: 16px; display: block; }
.rh4-hd-search-item:hover .rh4-hd-search-ico {
    background: rgba(138, 43, 214, 0.15);
    border-color: rgba(138, 43, 214, 0.3);
    color: #fff;
}
.rh4-hd-search-empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}
.rh4-hd-search-empty a { color: var(--rh-purple); text-decoration: underline; }
html[data-theme="light"] .rh4-hd-search-empty { color: rgba(13, 10, 31, 0.6); }
html[data-theme="light"] .rh4-hd-search-empty a { color: var(--rh-purple-deep); }

/* Light mode for search */
html[data-theme="light"] .rh4-hd-search {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
}
html[data-theme="light"] .rh4-hd-search:hover {
    background: rgba(13, 10, 31, 0.07);
    border-color: rgba(13, 10, 31, 0.18);
}
html[data-theme="light"] .rh4-hd-search.is-open {
    background: #fff;
    border-color: rgba(138, 43, 214, 0.5);
    box-shadow:
        0 0 0 4px rgba(138, 43, 214, 0.1),
        0 8px 24px rgba(13, 10, 31, 0.08);
}
html[data-theme="light"] .rh4-hd-search-trigger { color: rgba(13, 10, 31, 0.65); }
html[data-theme="light"] .rh4-hd-search-trigger:hover { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-search.is-open .rh4-hd-search-trigger { color: #6a1cb0; }
html[data-theme="light"] .rh4-hd-search input.rh4-hd-search-input,
html[data-theme="light"] .rh4-hd-search input.rh4-hd-search-input:focus,
html[data-theme="light"] .rh4-hd-search input.rh4-hd-search-input:hover {
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-hd-search-input::placeholder { color: rgba(13, 10, 31, 0.45) !important; }
html[data-theme="light"] .rh4-hd-search-kbd {
    color: rgba(13, 10, 31, 0.55);
    background: rgba(13, 10, 31, 0.05);
    border-color: rgba(13, 10, 31, 0.08);
}
html[data-theme="light"] .rh4-hd-search-close { color: rgba(13, 10, 31, 0.5); }
html[data-theme="light"] .rh4-hd-search-close:hover { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-search-pop {
    background: #fff;
    border-color: rgba(13, 10, 31, 0.08);
    box-shadow: 0 24px 60px rgba(13, 10, 31, 0.12);
}
html[data-theme="light"] .rh4-hd-search-poph { color: rgba(13, 10, 31, 0.5); }
html[data-theme="light"] .rh4-hd-search-item { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-search-item:hover { background: rgba(138, 43, 214, 0.06); }
html[data-theme="light"] .rh4-hd-search-item strong { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-search-item em { color: rgba(13, 10, 31, 0.55); }
html[data-theme="light"] .rh4-hd-search-ico {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
    color: rgba(13, 10, 31, 0.7);
}
html[data-theme="light"] .rh4-hd-search-item:hover .rh4-hd-search-ico {
    background: rgba(138, 43, 214, 0.1);
    border-color: rgba(138, 43, 214, 0.25);
    color: #6a1cb0;
}
.rh4-hd-actions .rollin-theme-toggle {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.rh4-hd-actions .rollin-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}
.rh4-hd-login {
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 180ms ease;
}
.rh4-hd-login:hover { color: #fff; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.rh4-hd-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #8a2bd6 0%, #6a1cb0 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(138, 43, 214, 0.35);
    transition: all 200ms ease;
}
.rh4-hd-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(138, 43, 214, 0.55);
    color: #fff;
    text-decoration: none;
}

/* ============= LIGHT THEME ============= */
html[data-theme="light"] .rh4-hd {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(13, 10, 31, 0.08);
}
html[data-theme="light"] .rh4-hd.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(13, 10, 31, 0.06);
}
html[data-theme="light"] .rh4-hd-top {
    background: rgba(13, 10, 31, 0.03);
    border-bottom-color: rgba(13, 10, 31, 0.05);
}
html[data-theme="light"] .rh4-hd-top-left,
html[data-theme="light"] .rh4-hd-top-right { color: rgba(13, 10, 31, 0.6); }
html[data-theme="light"] .rh4-hd-trust { color: rgba(13, 10, 31, 0.55); }
html[data-theme="light"] .rh4-hd-sep { color: rgba(13, 10, 31, 0.2); }
html[data-theme="light"] .rh4-hd-tlink { color: rgba(13, 10, 31, 0.65); }
html[data-theme="light"] .rh4-hd-tlink:hover { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-lang-btn { color: rgba(13, 10, 31, 0.65); }
html[data-theme="light"] .rh4-hd-lang-btn:hover { color: #0d0a1f; background: rgba(13, 10, 31, 0.04); }
html[data-theme="light"] .rh4-hd-lang-pop {
    background: #fff;
    border-color: rgba(13, 10, 31, 0.08);
    box-shadow: 0 12px 40px rgba(13, 10, 31, 0.12);
}
html[data-theme="light"] .rh4-hd-lang-pop a { color: rgba(13, 10, 31, 0.75); }
html[data-theme="light"] .rh4-hd-lang-pop a:hover { background: rgba(13, 10, 31, 0.04); color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-brand-1 { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-brand-2 { color: rgba(13, 10, 31, 0.5); }
html[data-theme="light"] .rh4-hd-nav-link { color: rgba(13, 10, 31, 0.7); }
html[data-theme="light"] .rh4-hd-nav-link:hover { color: #0d0a1f; background: rgba(13, 10, 31, 0.05); }
html[data-theme="light"] .rh4-hd-mega {
    background: #fff;
    border-color: rgba(13, 10, 31, 0.08);
    box-shadow: 0 24px 60px rgba(13, 10, 31, 0.12);
}
html[data-theme="light"] .rh4-hd-mega-h { color: rgba(13, 10, 31, 0.5); }
html[data-theme="light"] .rh4-hd-mega-item { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-mega-item:hover { background: rgba(13, 10, 31, 0.04); }
html[data-theme="light"] .rh4-hd-mega-item strong { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-mega-item em { color: rgba(13, 10, 31, 0.55); }
html[data-theme="light"] .rh4-hd-mega-feature {
    background: linear-gradient(135deg, rgba(138, 43, 214, 0.08) 0%, rgba(138, 43, 214, 0.02) 100%);
    border-color: rgba(138, 43, 214, 0.18);
}
html[data-theme="light"] .rh4-hd-mega-feature strong { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-mega-feature p { color: rgba(13, 10, 31, 0.6); }
html[data-theme="light"] .rh4-hd-mega-tag {
    background: rgba(138, 43, 214, 0.12);
    color: #6a1cb0;
}
html[data-theme="light"] .rh4-hd-mega-cta { color: #6a1cb0; }
html[data-theme="light"] .rh4-hd-mega-cta:hover { color: #4a0e80; }
html[data-theme="light"] .rh4-hd-mega-ico {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
    color: rgba(13, 10, 31, 0.7);
}
html[data-theme="light"] .rh4-hd-mega-item:hover .rh4-hd-mega-ico {
    background: rgba(138, 43, 214, 0.1);
    border-color: rgba(138, 43, 214, 0.25);
    color: #6a1cb0;
}
html[data-theme="light"] .rh4-hd-status-dot {
    box-shadow: 0 0 4px rgba(40, 160, 64, 0.4);
}
html[data-theme="light"] .rh4-hd-status { color: rgba(13, 10, 31, 0.65); }
html[data-theme="light"] .rh4-hd-status:hover { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-search {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
    color: rgba(13, 10, 31, 0.65);
}
html[data-theme="light"] .rh4-hd-search:hover { color: #0d0a1f; background: rgba(13, 10, 31, 0.07); }
html[data-theme="light"] .rh4-hd-actions .rollin-theme-toggle {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
}
html[data-theme="light"] .rh4-hd-login { color: #0d0a1f; }
html[data-theme="light"] .rh4-hd-login:hover { background: rgba(13, 10, 31, 0.05); }

/* ============= RESPONSIVE ============= */
@media (max-width: 1180px) {
    .rh4-hd-trust { display: none; }
    /* Mantém ancorado no trigger (left: -16px) — só reduz min-width e
       reorganiza pra 2 colunas pra caber no viewport. */
    .rh4-hd-mega { min-width: min(720px, calc(100vw - 32px)); }
    .rh4-hd-mega-grid { grid-template-columns: repeat(2, 1fr); }
    .rh4-hd-mega-feature { grid-column: span 2; }
}
/* Below 991px we hand off to MobileHeader/Drawer (rendered by BaseLayout) */
@media (max-width: 991px) {
    .rh4-hd { display: none !important; }
}
