/* =============================================================
   INDEX4 — Header
   Top trust strip + main bar with mega-dropdowns.
   Loaded from /public/css/ (bypasses Astro scoping).
   ============================================================= */

/* =============================================================
   HERO STAGE — rotating product views
   ============================================================= */
.rh4-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    max-height: 460px;
}
.rh4-stage-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    transition: opacity 380ms ease, transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.rh4-stage-panel.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.rh4-stage-panel > * { width: 100%; height: 100%; }

/* Dots hidden — tabs handle all navigation */
.rh4-stage-dots { display: none !important; }

/* Tabs / indicators below the stage */
.rh4-stage-tabs {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 5px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.rh4-stage-tab {
    flex: 1;
    padding: 7px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
    white-space: nowrap;
    text-align: center;
}
.rh4-stage-tab:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
}
.rh4-stage-tab.is-active {
    background: rgba(138, 43, 214, 0.25);
    color: #e0b0ff;
    font-weight: 700;
}
html[data-theme="light"] .rh4-stage-tabs {
    background: rgba(13, 10, 31, 0.05);
    border-color: rgba(13, 10, 31, 0.1);
}
html[data-theme="light"] .rh4-stage-tab {
    color: rgba(13, 10, 31, 0.45);
}
html[data-theme="light"] .rh4-stage-tab:hover {
    color: rgba(13, 10, 31, 0.8);
    background: rgba(13, 10, 31, 0.06);
}
html[data-theme="light"] .rh4-stage-tab.is-active {
    background: rgba(138, 43, 214, 0.12);
    color: #5b14a8;
    font-weight: 700;
}

/* Panel 1 — WhatsApp chat */
.rh4-chat {
    background: rgba(15, 4, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(138, 43, 214, 0.15);
    display: flex;
    flex-direction: column;
}
.rh4-chat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #6a1cb0, #4a0e80);
    color: #fff;
}
.rh4-chat-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.rh4-chat-meta { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }
.rh4-chat-meta strong { font-size: 13px; font-weight: 600; }
.rh4-chat-meta em {
    font-style: normal;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.rh4-chat-online {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 6px #28c840;
}
.rh4-chat-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}
.rh4-msg {
    max-width: 78%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    position: relative;
    color: #fff;
}
.rh4-msg time {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.55;
}
.rh4-msg--in {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 4px;
}
.rh4-msg--out {
    align-self: flex-end;
    background: linear-gradient(135deg, #6a1cb0, #4a0e80);
    border-bottom-right-radius: 4px;
}
.rh4-msg--typing {
    align-self: flex-end;
    background: linear-gradient(135deg, #6a1cb0, #4a0e80);
    border-bottom-right-radius: 4px;
    padding: 12px 14px;
    display: inline-flex;
    gap: 4px;
}
.rh4-msg--typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    animation: rh4-typing 1.4s ease-in-out infinite;
}
.rh4-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.rh4-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rh4-typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Audio message bubble (inside chat) */
.rh4-msg--audio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}
.rh4-audio-play {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.rh4-audio-wave {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 18px;
}
.rh4-audio-wave span {
    display: inline-block;
    width: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}
.rh4-audio-wave span:nth-child(1)  { height: 30%; }
.rh4-audio-wave span:nth-child(2)  { height: 55%; }
.rh4-audio-wave span:nth-child(3)  { height: 75%; }
.rh4-audio-wave span:nth-child(4)  { height: 45%; }
.rh4-audio-wave span:nth-child(5)  { height: 65%; }
.rh4-audio-wave span:nth-child(6)  { height: 90%; }
.rh4-audio-wave span:nth-child(7)  { height: 50%; }
.rh4-audio-wave span:nth-child(8)  { height: 70%; }
.rh4-audio-wave span:nth-child(9)  { height: 85%; }
.rh4-audio-wave span:nth-child(10) { height: 40%; }
.rh4-audio-wave span:nth-child(11) { height: 60%; }
.rh4-audio-wave span:nth-child(12) { height: 75%; }
.rh4-audio-wave span:nth-child(13) { height: 95%; }
.rh4-audio-wave span:nth-child(14) { height: 55%; }
.rh4-audio-wave span:nth-child(15) { height: 35%; }
.rh4-audio-wave span:nth-child(16) { height: 70%; }
.rh4-audio-wave span:nth-child(17) { height: 50%; }
.rh4-audio-wave span:nth-child(18) { height: 80%; }
.rh4-audio-wave span:nth-child(19) { height: 60%; }
.rh4-audio-wave span:nth-child(20) { height: 35%; }
.rh4-audio-wave span:nth-child(21) { height: 70%; }
.rh4-audio-wave span:nth-child(22) { height: 90%; }
.rh4-audio-wave span:nth-child(23) { height: 45%; }
.rh4-audio-wave span:nth-child(24) { height: 25%; }
.rh4-audio-wave span:nth-child(25) { height: 60%; }
.rh4-audio-wave span:nth-child(26) { height: 40%; }
.rh4-audio-wave span:nth-child(27) { height: 50%; }
.rh4-audio-wave span:nth-child(28) { height: 30%; }
.rh4-audio-time {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}
.rh4-msg--audio.rh4-msg--in .rh4-audio-play {
    background: rgba(184, 85, 255, 0.2);
    color: #c39bff;
}
.rh4-msg--audio.rh4-msg--in .rh4-audio-wave span { background: rgba(184, 85, 255, 0.7); }
.rh4-msg--audio.rh4-msg--in .rh4-audio-time { color: rgba(255, 255, 255, 0.7); }

/* Panel 2 — CRM Hunter */
.rh4-crm {
    background: rgba(15, 4, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(138, 43, 214, 0.15);
    display: flex;
    flex-direction: column;
}
.rh4-crm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(138, 43, 214, 0.2), rgba(74, 14, 128, 0.15));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}
.rh4-crm-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.rh4-crm-logo {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #8a2bd6, #6a1cb0);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rh4-crm-title strong { font-size: 13px; font-weight: 700; }
.rh4-crm-title em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.55);
    margin-left: 4px;
}
.rh4-crm-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}
.rh4-crm-stat strong {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.rh4-crm-stat em {
    font-style: normal;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
}
.rh4-crm-board {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    overflow: hidden;
}
.rh4-crm-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 10px;
    padding: 8px 6px;
    min-width: 0;
}
.rh4-crm-coltitle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 4px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}
.rh4-crm-coldot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.rh4-crm-coldot[data-s="new"]  { background: #94a3b8; }
.rh4-crm-coldot[data-s="qual"] { background: #b855ff; }
.rh4-crm-coldot[data-s="neg"]  { background: #f59e0b; }
.rh4-crm-coldot[data-s="won"]  { background: #28c840; }

.rh4-crm-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rh4-crm-card strong {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rh4-crm-meta {
    font-size: 10px;
    font-weight: 700;
    color: #b855ff;
}
.rh4-crm-meta em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    margin-left: 2px;
}
.rh4-crm-card--hot {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
}
.rh4-crm-card--hot .rh4-crm-meta { color: #fbbf24; }
.rh4-crm-card--won {
    border-color: rgba(40, 200, 64, 0.4);
    background: rgba(40, 200, 64, 0.06);
}
.rh4-crm-card--won .rh4-crm-meta { color: #28c840; }

/* Panel 3 — Resultados */
.rh4-res {
    background: rgba(15, 4, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(138, 43, 214, 0.15);
    display: flex;
    flex-direction: column;
}
.rh4-res-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
}
.rh4-res-period {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.rh4-res-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
}
.rh4-res-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rh4-res-card--wide { grid-column: span 2; }
.rh4-res-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}
.rh4-res-rows { display: flex; flex-direction: column; gap: 4px; }
.rh4-res-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.rh4-res-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rh4-res-tag--now {
    background: rgba(184, 85, 255, 0.18);
    color: #c39bff;
}
.rh4-res-val {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}
.rh4-res-val small {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}
.rh4-res-val--mute { color: rgba(255, 255, 255, 0.4); }
.rh4-res-delta {
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
}
.rh4-res-delta--up   { color: #28c840; }
.rh4-res-delta--down { color: #b855ff; }

.rh4-res-prog {
    position: relative;
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.rh4-res-prog-before {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    z-index: 1;
}
.rh4-res-prog-after {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #6a1cb0, #b855ff);
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 0 12px rgba(184, 85, 255, 0.5);
}
.rh4-res-barkeys {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}
.rh4-res-barkeys span:last-child { margin-left: auto; }
.rh4-res-key {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #b855ff;
    margin-right: 5px;
    vertical-align: middle;
}
.rh4-res-key--mute { background: rgba(255, 255, 255, 0.25); }

/* Light theme overrides for stage panels */
html[data-theme="light"] .rh4-chat,
html[data-theme="light"] .rh4-crm,
html[data-theme="light"] .rh4-res {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(13, 10, 31, 0.08);
    box-shadow: 0 24px 60px rgba(13, 10, 31, 0.1), 0 0 60px rgba(138, 43, 214, 0.08);
}
html[data-theme="light"] .rh4-crm-bar {
    background: linear-gradient(135deg, rgba(138, 43, 214, 0.08), rgba(74, 14, 128, 0.04));
    border-bottom-color: rgba(13, 10, 31, 0.06);
    color: #0d0a1f;
}
html[data-theme="light"] .rh4-crm-title em { color: rgba(13, 10, 31, 0.55); }
html[data-theme="light"] .rh4-crm-stat strong { color: #0d0a1f; }
html[data-theme="light"] .rh4-crm-stat em { color: rgba(13, 10, 31, 0.55); }
html[data-theme="light"] .rh4-crm-col {
    background: rgba(13, 10, 31, 0.03);
}
html[data-theme="light"] .rh4-crm-coltitle { color: rgba(13, 10, 31, 0.55); }
html[data-theme="light"] .rh4-crm-card {
    background: #fff;
    border-color: rgba(13, 10, 31, 0.08);
}
html[data-theme="light"] .rh4-crm-card strong { color: #0d0a1f; }
html[data-theme="light"] .rh4-crm-meta { color: #6a1cb0; }
html[data-theme="light"] .rh4-crm-meta em { color: rgba(13, 10, 31, 0.5); }

html[data-theme="light"] .rh4-res-bar {
    background: rgba(13, 10, 31, 0.02);
    border-bottom-color: rgba(13, 10, 31, 0.06);
    color: #0d0a1f;
}
html[data-theme="light"] .rh4-res-period { color: rgba(13, 10, 31, 0.5); }
html[data-theme="light"] .rh4-res-card {
    background: rgba(13, 10, 31, 0.025);
    border-color: rgba(13, 10, 31, 0.06);
}
html[data-theme="light"] .rh4-res-label { color: rgba(13, 10, 31, 0.55); }
html[data-theme="light"] .rh4-res-tag {
    background: rgba(13, 10, 31, 0.06);
    color: rgba(13, 10, 31, 0.55);
}
html[data-theme="light"] .rh4-res-tag--now {
    background: rgba(138, 43, 214, 0.12);
    color: #6a1cb0;
}
html[data-theme="light"] .rh4-res-val { color: #0d0a1f; }
html[data-theme="light"] .rh4-res-val small { color: rgba(13, 10, 31, 0.55); }
html[data-theme="light"] .rh4-res-val--mute { color: rgba(13, 10, 31, 0.4); }
html[data-theme="light"] .rh4-res-delta--down { color: #6a1cb0; }
html[data-theme="light"] .rh4-res-prog {
    background: rgba(13, 10, 31, 0.06);
}
html[data-theme="light"] .rh4-res-barkeys { color: rgba(13, 10, 31, 0.65); }
html[data-theme="light"] .rh4-res-key--mute { background: rgba(13, 10, 31, 0.2); }

html[data-theme="light"] .rh4-msg--in {
    background: rgba(13, 10, 31, 0.06);
    color: #0d0a1f;
}
html[data-theme="light"] .rh4-msg--audio.rh4-msg--in .rh4-audio-play {
    background: rgba(138, 43, 214, 0.12);
    color: #6a1cb0;
}
html[data-theme="light"] .rh4-msg--audio.rh4-msg--in .rh4-audio-wave span {
    background: rgba(138, 43, 214, 0.65);
}
html[data-theme="light"] .rh4-msg--audio.rh4-msg--in .rh4-audio-time {
    color: rgba(13, 10, 31, 0.7);
}

/* Responsive — keep 4:3 stage on small screens */
@media (max-width: 600px) {
    .rh4-stage { aspect-ratio: 4 / 3; }
    .rh4-stage-tabs { gap: 4px; }
    .rh4-stage-tab { padding: 6px 10px; font-size: 11px; }
}



/* =============================================================
   BENTO — datacenter racks visual
   ============================================================= */
.rh4-racks {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 8px 0 4px;
}
.rh4-rack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 10px;
    transition: all 200ms ease;
}
.rh4-rack:hover {
    background: rgba(138, 43, 214, 0.08);
    border-color: rgba(138, 43, 214, 0.3);
}
.rh4-rack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rh4-rack-name {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}
.rh4-rack-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.6);
    animation: rh4-pulse-dot 2.4s ease-in-out infinite;
}
.rh4-rack-units {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 0;
}
.rh4-rack-units span {
    height: 6px;
    background: linear-gradient(90deg, rgba(184, 85, 255, 0.4), rgba(138, 43, 214, 0.2));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.rh4-rack-units span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 4px #28c840;
    transform: translateY(-50%);
}
.rh4-rack-units span:nth-child(2)::after { background: #fbbf24; box-shadow: 0 0 4px #fbbf24; }
.rh4-rack-units span:nth-child(5)::after { background: #fbbf24; box-shadow: 0 0 4px #fbbf24; }
.rh4-rack-foot {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .rh4-rack {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
}
html[data-theme="light"] .rh4-rack:hover {
    background: rgba(138, 43, 214, 0.06);
    border-color: rgba(138, 43, 214, 0.25);
}
html[data-theme="light"] .rh4-rack-name { color: #0d0a1f; }
html[data-theme="light"] .rh4-rack-foot {
    color: rgba(13, 10, 31, 0.55);
    border-top-color: rgba(13, 10, 31, 0.06);
}
html[data-theme="light"] .rh4-rack-units span {
    background: linear-gradient(90deg, rgba(138, 43, 214, 0.3), rgba(138, 43, 214, 0.1));
}

/* =============================================================
   BENTO — Agent promo banners
   ============================================================= */
.rh4-agent {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.rh4-agent::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(138, 43, 214, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
    border-radius: inherit;
}
.rh4-agent:hover {
    text-decoration: none;
    color: inherit;
    border-color: rgba(138, 43, 214, 0.4) !important;
    transform: translateY(-2px);
}
.rh4-agent:hover::before { opacity: 1; }

.rh4-agent-tag {
    align-self: flex-start;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 1;
}
.rh4-agent-ico {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(138, 43, 214, 0.15);
    border: 1px solid rgba(138, 43, 214, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c39bff;
    transition: all 250ms ease;
    position: relative;
    z-index: 1;
}
.rh4-agent-ico svg { width: 22px; height: 22px; }
.rh4-agent:hover .rh4-agent-ico {
    background: rgba(138, 43, 214, 0.25);
    border-color: rgba(184, 85, 255, 0.55);
    color: #fff;
}
.rh4-agent h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
}
.rh4-agent p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    position: relative;
    z-index: 1;
}
.rh4-agent-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #c39bff;
    transition: all 200ms ease;
    position: relative;
    z-index: 1;
}
.rh4-agent-cta svg { transition: transform 200ms ease; }
.rh4-agent:hover .rh4-agent-cta { color: #fff; }
.rh4-agent:hover .rh4-agent-cta svg { transform: translateX(3px); }

/* Featured agent (SDR) — slightly bolder visual */
.rh4-agent--feature {
    background: linear-gradient(135deg, rgba(138, 43, 214, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border-color: rgba(138, 43, 214, 0.35) !important;
}

html[data-theme="light"] .rh4-agent::before {
    background: linear-gradient(135deg, rgba(138, 43, 214, 0.07), transparent 60%);
}
html[data-theme="light"] .rh4-agent-tag {
    background: rgba(13, 10, 31, 0.04);
    border-color: rgba(13, 10, 31, 0.08);
    color: rgba(13, 10, 31, 0.6);
}
html[data-theme="light"] .rh4-agent-ico {
    background: rgba(138, 43, 214, 0.08);
    border-color: rgba(138, 43, 214, 0.2);
    color: #6a1cb0;
}
html[data-theme="light"] .rh4-agent:hover .rh4-agent-ico {
    background: rgba(138, 43, 214, 0.15);
    color: #4a0e80;
}
html[data-theme="light"] .rh4-agent h3 { color: #0d0a1f; }
html[data-theme="light"] .rh4-agent p { color: rgba(13, 10, 31, 0.62); }
html[data-theme="light"] .rh4-agent-cta { color: #6a1cb0; }
html[data-theme="light"] .rh4-agent:hover .rh4-agent-cta { color: #4a0e80; }
html[data-theme="light"] .rh4-agent--feature {
    background: linear-gradient(135deg, rgba(138, 43, 214, 0.08) 0%, rgba(13, 10, 31, 0.02) 100%) !important;
    border-color: rgba(138, 43, 214, 0.25) !important;
}

/* =============================================================
   ROTATING BANNER — top of page
   ============================================================= */
.rh4-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 56px;
    background: linear-gradient(90deg, #4a0e80 0%, #8a2bd6 50%, #4a0e80 100%);
    background-size: 200% 100%;
    color: #fff;
    font-size: 13px;
    overflow: hidden;
    animation: rh4-banner-shimmer 14s linear infinite;
}
@keyframes rh4-banner-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.rh4-banner.is-hidden { display: none; }

.rh4-banner-track {
    flex: 1;
    position: relative;
    height: 22px;
    max-width: 880px;
    overflow: hidden;
}
.rh4-banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 360ms ease, transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    white-space: nowrap;
}
.rh4-banner-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.rh4-banner-slide.is-leaving {
    opacity: 0;
    transform: translateX(-20px);
}

.rh4-banner-tag {
    flex-shrink: 0;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.rh4-banner-tag--alt {
    background: rgba(255, 255, 255, 0.95);
    color: #4a0e80;
    border-color: transparent;
}
.rh4-banner-text {
    color: rgba(255, 255, 255, 0.94);
    overflow: hidden;
    text-overflow: ellipsis;
}
.rh4-banner-text strong { color: #fff; font-weight: 700; }

.rh4-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 180ms ease;
    flex-shrink: 0;
}
.rh4-banner-cta:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #4a0e80;
    text-decoration: none;
}

.rh4-banner-arrow {
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 999px;
    transition: all 180ms ease;
}
.rh4-banner-arrow:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.rh4-banner-dots {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
}
.rh4-banner-dot {
    width: 5px; height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 180ms ease;
}
.rh4-banner-dot:hover { background: rgba(255, 255, 255, 0.6); }
.rh4-banner-dot.is-active {
    width: 16px;
    background: #fff;
}

.rh4-banner-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    border-radius: 999px;
    transition: all 180ms ease;
}
.rh4-banner-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .rh4-banner { padding: 10px 44px; gap: 8px; font-size: 12px; }
    .rh4-banner-arrow { display: none; }
    .rh4-banner-dots { display: none; }
}
@media (max-width: 600px) {
    .rh4-banner-tag { display: none; }
    .rh4-banner-cta { display: none; }
    .rh4-banner-text { white-space: normal; text-align: center; line-height: 1.3; }
    .rh4-banner-track { height: auto; }
}

/* Hero highlighted phrase — solid brand purple, no gradient
   (Wins over inline <style> via specificity + !important to bypass caching) */
html .rh4-gradient-text,
html[data-theme="light"] .rh4-gradient-text,
html[data-theme="dark"] .rh4-gradient-text {
    background: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
}
html .rh4-gradient-text { color: #b855ff !important; }
html[data-theme="light"] .rh4-gradient-text { color: #6a1cb0 !important; }

/* Light theme — bento card text legibility fixes */
html[data-theme="light"] .rh4-stat-big {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #0d0a1f !important;
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-card-foot {
    color: rgba(13, 10, 31, 0.7) !important;
}
html[data-theme="light"] .rh4-rack-foot {
    color: rgba(13, 10, 31, 0.7) !important;
    border-top-color: rgba(13, 10, 31, 0.08) !important;
}
html[data-theme="light"] .rh4-rack-name {
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-card-head h3 {
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-pill {
    background: rgba(13, 10, 31, 0.05) !important;
    border-color: rgba(13, 10, 31, 0.12) !important;
    color: rgba(13, 10, 31, 0.8) !important;
}
html[data-theme="light"] .rh4-check-list li {
    color: rgba(13, 10, 31, 0.8) !important;
}

/* Light theme — kill ALL cyan tag/check accents (illegible on white) */
html[data-theme="light"] .rh4-tag--cyan,
html[data-theme="light"] .rh4-tag--green,
html[data-theme="light"] .rh4-tag--purple,
html[data-theme="light"] .rh4-tag--pink {
    background: rgba(138, 43, 214, 0.1) !important;
    border: 1px solid rgba(138, 43, 214, 0.2) !important;
    color: #6a1cb0 !important;
}
html[data-theme="light"] .rh4-check {
    background: rgba(138, 43, 214, 0.12) !important;
    color: #6a1cb0 !important;
}
html[data-theme="light"] .rh4-kicker {
    color: #6a1cb0 !important;
}

/* =============================================================
   COMPARISON TABLE — refined styling (override scoped Astro CSS)
   ============================================================= */
.rh4-compare {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    backdrop-filter: blur(16px);
}
.rh4-compare-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 14px !important;
}
.rh4-compare-table thead tr { background: rgba(255, 255, 255, 0.02); }
.rh4-compare-table thead th {
    padding: 22px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    vertical-align: middle;
}
.rh4-compare-table thead th:first-child {
    text-align: left !important;
    width: 36%;
}
.rh4-compare-rh {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
}
.rh4-compare-h {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.rh4-compare-mark {
    display: block;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 4px;
}
.rh4-compare-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rh4-compare-table thead th.is-us {
    position: relative;
    background: linear-gradient(180deg, rgba(138, 43, 214, 0.35) 0%, rgba(138, 43, 214, 0.18) 100%) !important;
}
.rh4-compare-table thead th.is-us::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b855ff, #8a2bd6);
}
.rh4-compare-table tbody td {
    padding: 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-align: center;
    vertical-align: middle;
}
.rh4-compare-table tbody td:first-child {
    text-align: left !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px;
}
.rh4-compare-table tbody tr:last-child td { border-bottom: none !important; }
.rh4-compare-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.rh4-compare-table tbody td.is-us {
    background: linear-gradient(180deg, rgba(138, 43, 214, 0.1), rgba(138, 43, 214, 0.04)) !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.rh4-compare-table tbody tr:last-child td.is-us {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Check / dash markers */
.rh4-yes {
    display: inline-flex !important;
    width: 28px !important;
    height: 28px !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #34d399, #1ea035) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(40, 200, 64, 0.3);
}
.rh4-yes svg { width: 14px; height: 14px; }
.is-us .rh4-yes {
    background: linear-gradient(135deg, #b855ff, #8a2bd6) !important;
    box-shadow: 0 4px 12px rgba(138, 43, 214, 0.4);
}
.rh4-no {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.25) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1;
}

/* Light theme — comparison table */
html[data-theme="light"] .rh4-compare {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(13, 10, 31, 0.08) !important;
    box-shadow: 0 8px 32px rgba(13, 10, 31, 0.05);
}
html[data-theme="light"] .rh4-compare-table thead tr {
    background: rgba(13, 10, 31, 0.025);
}
html[data-theme="light"] .rh4-compare-table thead th {
    border-bottom-color: rgba(13, 10, 31, 0.1) !important;
}
html[data-theme="light"] .rh4-compare-rh { color: rgba(13, 10, 31, 0.5); }
html[data-theme="light"] .rh4-compare-h { color: rgba(13, 10, 31, 0.7); }
html[data-theme="light"] .rh4-compare-mark { color: #fff; }
html[data-theme="light"] .rh4-compare-table thead th.is-us {
    background: linear-gradient(180deg, #8a2bd6, #6a1cb0) !important;
}
html[data-theme="light"] .rh4-compare-table tbody td {
    border-bottom-color: rgba(13, 10, 31, 0.06) !important;
    color: rgba(13, 10, 31, 0.7) !important;
}
html[data-theme="light"] .rh4-compare-table tbody td:first-child {
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-compare-table tbody tr:hover td { background: rgba(138, 43, 214, 0.025); }
html[data-theme="light"] .rh4-compare-table tbody td.is-us {
    background: linear-gradient(180deg, rgba(138, 43, 214, 0.1), rgba(138, 43, 214, 0.04)) !important;
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-no { color: rgba(13, 10, 31, 0.25) !important; }

@media (max-width: 720px) {
    .rh4-compare { overflow-x: auto !important; }
    .rh4-compare-table { min-width: 640px; }
    .rh4-compare-table thead th,
    .rh4-compare-table tbody td { padding: 14px 10px !important; }
}

/* =============================================================
   STACK BUILDER — refined (override scoped Astro CSS)
   ============================================================= */
.rh4-builder {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 24px !important;
    overflow: hidden;
    backdrop-filter: blur(16px);
}
.rh4-builder-tabs {
    display: flex !important;
    gap: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.rh4-tab {
    flex: 1 !important;
    padding: 18px 16px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 200ms ease !important;
    position: relative;
    text-align: center;
}
.rh4-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
.rh4-tab.is-active {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
}
.rh4-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #b855ff, #8a2bd6);
    border-radius: 2px 2px 0 0;
}

/* Slider value — was cyan (illegible) → solid white/dark */
.rh4-control-label strong {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}
.rh4-control input[type="range"]::-webkit-slider-thumb {
    background: #b855ff !important;
}
.rh4-control input[type="range"]::-moz-range-thumb {
    background: #b855ff !important;
}

/* Output card */
.rh4-builder-out {
    background: linear-gradient(180deg, rgba(138,43,214,0.18), rgba(138,43,214,0.06)) !important;
    border: 1px solid rgba(138,43,214,0.35) !important;
}
.rh4-out-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}
.rh4-out-foot {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 12px !important;
}

/* Light theme — Builder */
html[data-theme="light"] .rh4-builder {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(13, 10, 31, 0.1) !important;
    box-shadow: 0 8px 32px rgba(13, 10, 31, 0.05);
}
html[data-theme="light"] .rh4-builder-tabs {
    border-bottom-color: rgba(13, 10, 31, 0.08) !important;
}
html[data-theme="light"] .rh4-tab {
    color: rgba(13, 10, 31, 0.55) !important;
}
html[data-theme="light"] .rh4-tab:hover {
    color: #0d0a1f !important;
    background: rgba(13, 10, 31, 0.03) !important;
}
html[data-theme="light"] .rh4-tab.is-active {
    color: #0d0a1f !important;
    background: transparent !important;
}
html[data-theme="light"] .rh4-control-label {
    color: rgba(13, 10, 31, 0.7) !important;
}
html[data-theme="light"] .rh4-control-label strong {
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-control input[type="range"] {
    background: rgba(13, 10, 31, 0.1) !important;
}
html[data-theme="light"] .rh4-control--check span {
    color: #0d0a1f !important;
    font-weight: 600 !important;
}
html[data-theme="light"] .rh4-builder-out {
    background: linear-gradient(180deg, rgba(138,43,214,0.1), rgba(138,43,214,0.02)) !important;
    border-color: rgba(138, 43, 214, 0.25) !important;
}
html[data-theme="light"] .rh4-out-label {
    color: rgba(13, 10, 31, 0.6) !important;
}
html[data-theme="light"] .rh4-out-price {
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-out-price small {
    color: rgba(13, 10, 31, 0.55) !important;
}
html[data-theme="light"] .rh4-out-foot {
    color: rgba(13, 10, 31, 0.65) !important;
}

/* Light theme — keep terminal dark with brand-tinted background */
html[data-theme="light"] .rh4-terminal {
    background: #180025 !important;
    border-color: rgba(184, 85, 255, 0.2) !important;
    box-shadow:
        0 24px 60px rgba(13, 10, 31, 0.18),
        0 0 80px rgba(138, 43, 214, 0.15) !important;
}

/* Eyebrow — neutral white pill (no cyan) */
html .rh4-eyebrow {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}
html .rh4-eyebrow .rh4-pulse-dot {
    background: #fff !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}
html[data-theme="light"] .rh4-eyebrow {
    background: rgba(13, 10, 31, 0.04) !important;
    border-color: rgba(13, 10, 31, 0.15) !important;
    color: #0d0a1f !important;
}
html[data-theme="light"] .rh4-eyebrow .rh4-pulse-dot {
    background: #0d0a1f !important;
    box-shadow: 0 0 8px rgba(13, 10, 31, 0.4) !important;
}

/* Trust line: kill cyan/illegible fallback in light mode */
html[data-theme="light"] .rh4-hero-trust {
    color: rgba(13, 10, 31, 0.65) !important;
}
html[data-theme="light"] .rh4-hero-trust strong {
    color: #0d0a1f !important;
}

/* Header styles moved to site-header-v4.css */

/* =============================================================
   BENTO CAROUSEL — desktop grid / tablet 2-col / mobile scroll
   ============================================================= */
.rh4-bento-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
}
.rh4-infra-carousel .rh4-bento-card--lg {
    grid-column: span 2;
    grid-row: span 2;
}
.rh4-agents-carousel {
    grid-template-columns: repeat(3, 1fr);
}
.rh4-agents-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 48px 0 16px;
}
html[data-theme="light"] .rh4-agents-heading { color: #0d0a1f; }

@media (max-width: 960px) {
    .rh4-bento-carousel { grid-template-columns: repeat(2, 1fr); }
    .rh4-infra-carousel .rh4-bento-card--lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
    .rh4-agents-heading { margin-top: 36px; font-size: 20px; }

    .rh4-bento-carousel {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 4px 24px 16px;
        margin-left: -24px;
        margin-right: -24px;
        scrollbar-width: none;
    }
    .rh4-bento-carousel::-webkit-scrollbar { display: none; }
    .rh4-bento-carousel .rh4-bento-card {
        flex: 0 0 80vw;
        max-width: 300px;
        scroll-snap-align: start;
    }
    .rh4-infra-carousel .rh4-bento-card--lg { flex: 0 0 85vw; max-width: 320px; }
    .rh4-agents-carousel .rh4-bento-card { flex: 0 0 76vw; max-width: 280px; }
}

/* =============================================================
   AGENT SIMULATOR — premium redesign
   ============================================================= */
.rh4-sim-section {
    position: relative;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(138,43,214,0.08), transparent 60%),
        radial-gradient(ellipse at 100% 50%, rgba(1,250,213,0.04), transparent 60%);
}
.rh4-sim-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
    margin-top: 64px;
}

/* ---------- LEFT: STEPPED PANEL ---------- */
.rh4-sim-panel {
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.rh4-sim-step { display: flex; flex-direction: column; gap: 18px; }
.rh4-sim-step-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.rh4-sim-step-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #c084fc;
    background: rgba(138,43,214,0.12);
    border: 1px solid rgba(138,43,214,0.3);
    padding: 4px 10px;
    border-radius: 99px;
    flex-shrink: 0;
    font-feature-settings: "tnum";
}
html[data-theme="light"] .rh4-sim-step-num {
    background: rgba(138,43,214,0.08);
    border-color: rgba(138,43,214,0.25);
    color: #6a1cb0;
}
.rh4-sim-step-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rh4-sim-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
html[data-theme="light"] .rh4-sim-step-title { color: #0d0a1f; }
.rh4-sim-step-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
html[data-theme="light"] .rh4-sim-step-hint { color: rgba(13,10,31,0.5); }

/* ---------- AGENT CARDS (Step 1) ---------- */
.rh4-sim-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.rh4-sim-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.rh4-sim-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(138,43,214,0.15), transparent 50%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
}
.rh4-sim-card:hover {
    border-color: rgba(138,43,214,0.4);
    background: rgba(138,43,214,0.06);
    transform: translateY(-2px);
}
.rh4-sim-card:hover::before { opacity: 1; }
.rh4-sim-card.is-active {
    border-color: rgba(138,43,214,0.6);
    background: rgba(138,43,214,0.12);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(138,43,214,0.3) inset,
        0 8px 24px rgba(138,43,214,0.18),
        0 0 32px rgba(138,43,214,0.1);
}
.rh4-sim-card.is-active::before { opacity: 1; }
.rh4-sim-card-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(138,43,214,0.18);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 240ms ease;
}
.rh4-sim-card.is-active .rh4-sim-card-ico {
    background: linear-gradient(135deg, #8a2bd6, #6a1cb0);
    color: #fff;
    box-shadow: 0 4px 12px rgba(138,43,214,0.4);
}
.rh4-sim-card-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: inherit;
}
.rh4-sim-card-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}
.rh4-sim-card.is-active .rh4-sim-card-desc { color: rgba(255,255,255,0.65); }
html[data-theme="light"] .rh4-sim-card {
    border-color: rgba(13,10,31,0.08);
    background: rgba(13,10,31,0.02);
    color: rgba(13,10,31,0.65);
}
html[data-theme="light"] .rh4-sim-card:hover {
    border-color: rgba(138,43,214,0.4);
    background: rgba(138,43,214,0.04);
}
html[data-theme="light"] .rh4-sim-card.is-active {
    border-color: rgba(138,43,214,0.55);
    background: rgba(138,43,214,0.06);
    color: #0d0a1f;
}
html[data-theme="light"] .rh4-sim-card-ico {
    background: rgba(138,43,214,0.1);
    color: #6a1cb0;
}
html[data-theme="light"] .rh4-sim-card-desc { color: rgba(13,10,31,0.45); }
html[data-theme="light"] .rh4-sim-card.is-active .rh4-sim-card-desc { color: rgba(13,10,31,0.65); }

/* ---------- PILLS (Steps 2 + 3) ---------- */
.rh4-sim-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rh4-sim-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 220ms ease;
    font-family: inherit;
}
.rh4-sim-pill:hover {
    border-color: rgba(138,43,214,0.4);
    background: rgba(138,43,214,0.08);
    color: #fff;
}
.rh4-sim-pill.is-active {
    border-color: rgba(138,43,214,0.7);
    background: rgba(138,43,214,0.18);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(138,43,214,0.25) inset, 0 0 16px rgba(138,43,214,0.18);
}
html[data-theme="light"] .rh4-sim-pill {
    border-color: rgba(13,10,31,0.1);
    background: rgba(13,10,31,0.03);
    color: rgba(13,10,31,0.7);
}
html[data-theme="light"] .rh4-sim-pill:hover {
    border-color: rgba(138,43,214,0.4);
    background: rgba(138,43,214,0.05);
    color: #3b0b66;
}
html[data-theme="light"] .rh4-sim-pill.is-active {
    border-color: rgba(138,43,214,0.55);
    background: rgba(138,43,214,0.08);
    color: #3b0b66;
}

/* ---------- ACTIONS ---------- */
.rh4-sim-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.rh4-sim-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8a2bd6 0%, #5b12a8 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(138,43,214,0.32), 0 0 0 1px rgba(255,255,255,0.05) inset;
    letter-spacing: -0.01em;
}
.rh4-sim-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(138,43,214,0.5), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.rh4-sim-restart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 220ms ease;
    font-family: inherit;
}
.rh4-sim-restart:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.rh4-sim-restart svg { transition: transform 500ms cubic-bezier(0.16,1,0.3,1); }
.rh4-sim-restart:hover svg { transform: rotate(-180deg); }
html[data-theme="light"] .rh4-sim-restart {
    background: rgba(13,10,31,0.03);
    border-color: rgba(13,10,31,0.1);
    color: rgba(13,10,31,0.65);
}
html[data-theme="light"] .rh4-sim-restart:hover {
    background: rgba(13,10,31,0.06);
    border-color: rgba(13,10,31,0.2);
    color: #0d0a1f;
}

/* ---------- RIGHT: CHAT PREVIEW ---------- */
.rh4-sim-preview { display: flex; flex-direction: column; gap: 16px; }

.rh4-sim-chat-app {
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15,5,30,0.95), rgba(10,0,20,0.95));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 0 80px rgba(138,43,214,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.rh4-sim-chat-app::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(138,43,214,0.06), transparent 30%);
    pointer-events: none;
}
html[data-theme="light"] .rh4-sim-chat-app {
    background: linear-gradient(180deg, #ffffff, #f8f6ff);
    border-color: rgba(13,10,31,0.08);
    box-shadow: 0 16px 40px rgba(13,10,31,0.1), 0 0 80px rgba(138,43,214,0.05);
}

/* header */
.rh4-sim-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    position: relative;
    z-index: 1;
}
html[data-theme="light"] .rh4-sim-chat-header {
    border-bottom-color: rgba(13,10,31,0.06);
    background: rgba(255,255,255,0.6);
}
.rh4-sim-chat-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.rh4-sim-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8a2bd6 0%, #01fad5 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(138,43,214,0.3);
    transition: all 360ms cubic-bezier(0.16,1,0.3,1);
}
.rh4-sim-chat-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rh4-sim-chat-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}
html[data-theme="light"] .rh4-sim-chat-name { color: #0d0a1f; }
.rh4-sim-chat-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
html[data-theme="light"] .rh4-sim-chat-sub { color: rgba(13,10,31,0.5); }
.rh4-sim-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #01fad5;
    box-shadow: 0 0 6px #01fad5;
    animation: rh4-sim-pulse 2s ease infinite;
}
@keyframes rh4-sim-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.rh4-sim-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(37,211,102,0.12);
    color: #25d366;
    border: 1px solid rgba(37,211,102,0.3);
    white-space: nowrap;
    transition: all 280ms ease;
    letter-spacing: 0.02em;
}

/* body */
.rh4-sim-chat-body {
    flex: 1;
    min-height: 380px;
    max-height: 460px;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    position: relative;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 0%, rgba(138,43,214,0.04), transparent 50%);
}
.rh4-sim-chat-body::-webkit-scrollbar { width: 4px; }
.rh4-sim-chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
.rh4-sim-chat-body::-webkit-scrollbar-track { background: transparent; }

/* message row */
.rh4-sim-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: rh4-sim-in 320ms cubic-bezier(0.16,1,0.3,1) both;
}
.rh4-sim-row--user { align-items: flex-end; }
.rh4-sim-row--agent { align-items: flex-start; }
@keyframes rh4-sim-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rh4-sim-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: -0.005em;
}
.rh4-sim-row--user .rh4-sim-bubble {
    background: linear-gradient(135deg, rgba(138,43,214,0.32), rgba(138,43,214,0.22));
    border: 1px solid rgba(138,43,214,0.4);
    color: #f0e8ff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 14px rgba(138,43,214,0.2);
}
.rh4-sim-row--agent .rh4-sim-bubble {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    border-bottom-left-radius: 6px;
}
html[data-theme="light"] .rh4-sim-row--user .rh4-sim-bubble {
    background: linear-gradient(135deg, rgba(138,43,214,0.14), rgba(138,43,214,0.08));
    border-color: rgba(138,43,214,0.25);
    color: #3b0b66;
    box-shadow: 0 2px 8px rgba(138,43,214,0.08);
}
html[data-theme="light"] .rh4-sim-row--agent .rh4-sim-bubble {
    background: #ffffff;
    border-color: rgba(13,10,31,0.06);
    color: rgba(13,10,31,0.85);
    box-shadow: 0 1px 3px rgba(13,10,31,0.04);
}
.rh4-sim-meta {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 4px;
}
html[data-theme="light"] .rh4-sim-meta { color: rgba(13,10,31,0.35); }

/* typing indicator */
.rh4-sim-typing {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    animation: rh4-sim-in 220ms ease both;
}
html[data-theme="light"] .rh4-sim-typing {
    background: #ffffff;
    border-color: rgba(13,10,31,0.06);
}
.rh4-sim-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    animation: rh4-sim-typedot 1.4s infinite ease-in-out;
}
html[data-theme="light"] .rh4-sim-typing span { background: rgba(13,10,31,0.35); }
.rh4-sim-typing span:nth-child(2) { animation-delay: 0.2s; }
.rh4-sim-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rh4-sim-typedot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* footer */
.rh4-sim-chat-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    position: relative;
    z-index: 1;
}
html[data-theme="light"] .rh4-sim-chat-footer {
    border-top-color: rgba(13,10,31,0.06);
    background: rgba(255,255,255,0.6);
}
.rh4-sim-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 99px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}
html[data-theme="light"] .rh4-sim-input {
    background: rgba(13,10,31,0.03);
    border-color: rgba(13,10,31,0.06);
    color: rgba(13,10,31,0.4);
}
.rh4-sim-input-cursor {
    width: 1.5px;
    height: 14px;
    background: currentColor;
    opacity: 0.4;
    animation: rh4-sim-cursor 1s step-start infinite;
}
@keyframes rh4-sim-cursor { 50% { opacity: 0; } }
.rh4-sim-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2bd6, #6a1cb0);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(138,43,214,0.35);
}

/* stats below chat */
.rh4-sim-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
}
html[data-theme="light"] .rh4-sim-stats {
    background: rgba(255,255,255,0.6);
    border-color: rgba(13,10,31,0.06);
}
.rh4-sim-stat { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.rh4-sim-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
}
html[data-theme="light"] .rh4-sim-stat-val { color: #0d0a1f; }
.rh4-sim-stat-unit {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    margin-left: 1px;
}
html[data-theme="light"] .rh4-sim-stat-unit { color: rgba(13,10,31,0.45); }
.rh4-sim-stat-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    letter-spacing: 0.01em;
}
html[data-theme="light"] .rh4-sim-stat-lbl { color: rgba(13,10,31,0.5); }
.rh4-sim-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.08);
}
html[data-theme="light"] .rh4-sim-stat-divider { background: rgba(13,10,31,0.08); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .rh4-sim-wrap { gap: 40px; }
}
@media (max-width: 960px) {
    .rh4-sim-wrap { grid-template-columns: 1fr; gap: 48px; }
    .rh4-sim-cards { grid-template-columns: repeat(3, 1fr); }
}
/* ============================================================
   SIMULADOR — MOBILE (≤720px) — refined for unique mobile UX
   Section header → config panel → chat preview (full-width app feel)
   ============================================================ */
@media (max-width: 720px) {
    /* Container with consistent horizontal padding */
    .rh4-sim-section { padding: 48px 0 56px !important; }
    .rh4-sim-section .rh4-container { padding-left: 16px; padding-right: 16px; }

    /* Section header (Monte seu agente / subtitle) */
    .rh4-sim-section .rh4-section-head { margin-bottom: 32px; }
    .rh4-sim-section .rh4-section-head h2 { font-size: 26px !important; line-height: 1.15; }
    .rh4-sim-section .rh4-section-head h2 br { display: none; }
    .rh4-sim-section .rh4-section-head p { font-size: 14px; line-height: 1.5; }

    /* Stack everything vertically with comfortable spacing */
    .rh4-sim-wrap { display: flex !important; flex-direction: column; gap: 28px; margin-top: 0; }
    .rh4-sim-panel { gap: 26px; }

    /* Step heads — tighter but readable */
    .rh4-sim-step { gap: 12px; }
    .rh4-sim-step-head { gap: 10px; }
    .rh4-sim-step-num { width: 24px; height: 24px; font-size: 10px; }
    .rh4-sim-step-title { font-size: 11px; letter-spacing: 0.08em; }
    .rh4-sim-step-hint { font-size: 11px; }

    /* Cards: 3-col equal grid, centered, no description */
    .rh4-sim-cards { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
    .rh4-sim-card {
        padding: 14px 8px !important;
        gap: 8px !important;
        align-items: center !important;
        text-align: center !important;
        min-height: 80px;
        justify-content: center;
    }
    .rh4-sim-card-ico { width: 32px !important; height: 32px !important; border-radius: 9px; }
    .rh4-sim-card-ico svg { width: 16px; height: 16px; }
    .rh4-sim-card-title { font-size: 12px; line-height: 1.2; font-weight: 700; }
    .rh4-sim-card-desc { display: none; }

    /* Channel + tone pills — wrap evenly */
    .rh4-sim-pills { gap: 6px; }
    .rh4-sim-pill {
        padding: 9px 14px;
        font-size: 12px;
        gap: 6px;
        flex: 1 1 auto;
        min-height: 36px;
        justify-content: center;
    }
    .rh4-sim-pill svg { width: 13px; height: 13px; flex-shrink: 0; }
    /* Tone uses 3 equal columns */
    #sim-tone-choices { display: grid; grid-template-columns: repeat(3, 1fr); }
    #sim-tone-choices .rh4-sim-pill { flex: none; }

    /* Actions row */
    .rh4-sim-actions { display: flex; gap: 10px; align-items: stretch; }
    .rh4-sim-cta {
        flex: 1;
        padding: 13px 18px !important;
        font-size: 14px;
        justify-content: center;
        min-height: 44px;
    }
    .rh4-sim-restart {
        padding: 0 14px;
        font-size: 12px;
        flex-shrink: 0;
        min-height: 44px;
        gap: 5px;
    }

    /* === CHAT PREVIEW — full-width app feel === */
    .rh4-sim-chat-app {
        height: auto !important;
        min-height: 0 !important;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    /* Header: solid roxo, alinhamento limpo */
    .rh4-sim-chat-header { padding: 12px 14px; gap: 10px; }
    .rh4-sim-chat-identity { gap: 10px; min-width: 0; flex: 1; }
    .rh4-sim-chat-avatar {
        width: 36px; height: 36px;
        flex-shrink: 0;
    }
    .rh4-sim-chat-avatar svg { width: 18px; height: 18px; }
    .rh4-sim-chat-name { font-size: 13px; max-width: 100%; }
    .rh4-sim-chat-sub { font-size: 10px; }
    .rh4-sim-chat-tools { flex-shrink: 0; }
    .rh4-sim-channel-badge { padding: 4px 9px; font-size: 10px; gap: 4px; }
    .rh4-sim-channel-badge svg { width: 11px; height: 11px; }

    /* Chat body: comfortable height for reading messages */
    .rh4-sim-chat-body {
        padding: 16px 14px !important;
        min-height: 360px !important;
        max-height: 440px;
        gap: 4px;
    }
    .rh4-sim-msg { font-size: 13px; padding: 9px 12px; max-width: 86%; }
    .rh4-sim-msg-label { font-size: 9px; margin-top: 6px; }

    /* Footer: input wide + send button proper circle */
    .rh4-sim-chat-footer {
        padding: 10px 12px !important;
        gap: 8px !important;
        align-items: center;
    }
    .rh4-sim-input {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 14px;
        font-size: 13px;
        height: 38px;
        line-height: 1;
    }
    .rh4-sim-send {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
    }
    .rh4-sim-send svg { width: 14px; height: 14px; }

    /* Stats: 3 columns flex (NOT grid — was breaking with dividers in 5 children) */
    .rh4-sim-stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
        padding: 16px 12px !important;
    }
    .rh4-sim-stat {
        flex: 1 1 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        text-align: center !important;
        padding: 0 6px !important;
        min-width: 0;
    }
    .rh4-sim-stat-val {
        font-size: 18px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        white-space: nowrap;
    }
    .rh4-sim-stat-unit { font-size: 11px !important; margin-left: 2px; }
    .rh4-sim-stat-lbl {
        font-size: 10px !important;
        line-height: 1.25 !important;
        color: rgba(255,255,255,0.55) !important;
        font-weight: 600 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        text-align: center !important;
        display: block !important;
    }
    /* Vertical 1px dividers between stats — proper flex item, not stretching */
    .rh4-sim-stat-divider {
        display: block !important;
        width: 1px !important;
        height: 32px !important;
        flex: 0 0 1px !important;
        background: rgba(255,255,255,0.1) !important;
        margin: 0 !important;
    }
}

/* Phones ≤480px — slightly tighter without breaking the layout */
@media (max-width: 480px) {
    .rh4-sim-section .rh4-section-head h2 { font-size: 23px !important; }
    .rh4-sim-card-title { font-size: 11px; }
    .rh4-sim-card { padding: 12px 6px !important; min-height: 76px; }
    .rh4-sim-card-ico { width: 30px !important; height: 30px !important; }
    .rh4-sim-pill { padding: 8px 10px; font-size: 11px; }
    .rh4-sim-stat-lbl { font-size: 8px !important; }
    .rh4-sim-stat-val { font-size: 15px; }
    .rh4-sim-chat-body { min-height: 320px !important; max-height: 400px; }
}

/* Very small phones ≤360px */
@media (max-width: 360px) {
    .rh4-sim-section .rh4-section-head h2 { font-size: 21px !important; }
    .rh4-sim-card-title { font-size: 10px; }
    .rh4-sim-pill { padding: 7px 8px; font-size: 10px; min-height: 32px; }
    #sim-tone-choices .rh4-sim-pill { font-size: 11px; }
}

/* ============================================================
   Mobile UX: hide hero stage preview, show only copy + CTA
   ============================================================ */
@media (max-width: 720px) {
    body section.rh4-hero .rh4-hero-preview,
    section.rh4-hero .rh4-hero-preview,
    .rh4-hero .rh4-hero-preview,
    section.rh4-hero .rh4-stage,
    section.rh4-hero .rh4-stage-tabs,
    section.rh4-hero .rh4-stage-dots {
        display: none !important;
    }
    section.rh4-hero .rh4-hero-inner { gap: 0 !important; }
    section.rh4-hero { padding: 32px 0 40px !important; }
}

/* ============================================================
   Hero title — force exactly 2 lines on all viewports
   Line 1: "Cloud brasileira"
   Line 2: "especializada em IA"
   ============================================================ */
.rh4-hero .rh4-hero-title .rh4-gradient-text {
    display: block !important;
    white-space: nowrap !important;
}

/* Scale down progressively so "especializada em IA" fits one line */
@media (max-width: 900px) {
    .rh4-hero .rh4-hero-title { font-size: 38px !important; }
}
@media (max-width: 720px) {
    .rh4-hero .rh4-hero-title { font-size: 32px !important; line-height: 1.12 !important; }
}
@media (max-width: 540px) {
    .rh4-hero .rh4-hero-title { font-size: 28px !important; }
}
@media (max-width: 440px) {
    .rh4-hero .rh4-hero-title { font-size: 24px !important; }
}
@media (max-width: 380px) {
    .rh4-hero .rh4-hero-title { font-size: 21px !important; }
}

/* ============================================================
   Hero preview wrapper — stack stage + tabs + dots vertically
   inside the RIGHT grid column, controls anchored below stage.
   ============================================================ */
@media (min-width: 961px) {
    body section.rh4-hero .rh4-hero-inner {
        align-items: start !important;
    }
    body section.rh4-hero .rh4-hero-copy {
        align-self: center !important;
    }
    body section.rh4-hero .rh4-hero-preview {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        align-self: stretch !important;
        width: 100% !important;
        min-width: 0;
    }
    body section.rh4-hero .rh4-hero-preview .rh4-stage {
        width: 100% !important;
        flex: 0 0 auto !important;
    }
    body section.rh4-hero .rh4-hero-preview .rh4-stage-tabs {
        display: flex !important;
        width: 100% !important;
        margin-top: 18px !important;
        align-self: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
    }
    body section.rh4-hero .rh4-hero-preview .rh4-stage-dots {
        width: 100% !important;
        align-self: center !important;
        margin-top: 12px !important;
        flex: 0 0 auto !important;
    }
}

/* ============================================================
   FIX: stat labels invisible in light mode (white-on-white)
   ============================================================ */
@media (max-width: 720px) {
    html[data-theme="light"] .rh4-sim-stat-lbl {
        color: rgba(13, 10, 31, 0.6) !important;
    }
    html[data-theme="light"] .rh4-sim-stat-divider {
        background: rgba(13, 10, 31, 0.1) !important;
    }
}
html[data-theme="light"] .rh4-sim-stat-lbl {
    color: rgba(13, 10, 31, 0.6) !important;
}
html[data-theme="light"] .rh4-sim-stat-unit {
    color: rgba(13, 10, 31, 0.55) !important;
}

/* ============================================================
   DESKTOP HERO: aggressive override to put stage controls
   below the right-side stage panel using subgrid-style layout.
   The .rh4-hero-preview becomes a 2-row internal flex column
   with stage on top + tabs/dots below.
   ============================================================ */
@media (min-width: 961px) {
    body main section.rh4-hero .rh4-hero-inner,
    section.rh4-hero .rh4-hero-inner,
    .rh4-hero .rh4-hero-inner {
        align-items: start !important;
    }
    body main section.rh4-hero .rh4-hero-copy,
    section.rh4-hero .rh4-hero-copy,
    .rh4-hero .rh4-hero-copy {
        align-self: center !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    body main section.rh4-hero .rh4-hero-preview,
    section.rh4-hero .rh4-hero-preview,
    .rh4-hero .rh4-hero-preview {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        align-self: start !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
    /* All children of preview stack vertically full-width */
    body main section.rh4-hero .rh4-hero-preview > *,
    section.rh4-hero .rh4-hero-preview > *,
    .rh4-hero .rh4-hero-preview > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
    }
    body main section.rh4-hero .rh4-hero-preview .rh4-stage-tabs,
    section.rh4-hero .rh4-hero-preview .rh4-stage-tabs {
        display: flex !important;
        justify-content: center !important;
        margin-top: 18px !important;
    }
    body main section.rh4-hero .rh4-hero-preview .rh4-stage-dots,
    section.rh4-hero .rh4-hero-preview .rh4-stage-dots {
        margin-top: 12px !important;
    }
}
