/* =============================================================
   ROLLIN HOST 2026 — CLIENT AREA HOME (premium)
   Hero · Stats · Status · Quick Actions · Twocol · Announce
   ============================================================= */

/* === Reveal animations (visível por padrão; classe adiciona entry suave) === */
[data-rh-reveal] {
    animation: rh-reveal 700ms cubic-bezier(.2,.7,.2,1) backwards;
    animation-delay: var(--rh-reveal-delay, 0ms);
}
@keyframes rh-reveal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    [data-rh-reveal] { animation: none; }
}

/* =============================================================
   HERO
   ============================================================= */

.rh-hero {
    position: relative;
    margin: 0 0 var(--space-lg);
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(138,43,214,0.18) 0%, rgba(1,250,213,0.05) 60%, rgba(106,26,176,0.18) 100%),
        rgba(21,0,40,0.55);
    border: 1px solid rgba(255,255,255,0.08);
    /* backdrop-filter removido pra performance */
    /* -webkit-backdrop-filter removido pra performance */
    box-shadow: 0 30px 80px rgba(0,0,0,0.45),
                inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="light"] .rh-hero {
    background:
        linear-gradient(135deg, rgba(106,26,176,0.10) 0%, rgba(255,255,255,0.6) 50%, rgba(87,16,160,0.10) 100%),
        rgba(255,255,255,0.85);
    border-color: rgba(13,10,31,0.08);
    box-shadow: 0 20px 50px rgba(106,26,176,0.10),
                inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Orbs decorativas — desabilitadas (filter:blur é GPU-heavy, hero já tem gradient) */
.rh-hero-orb,
.rh-hero-mesh,
.rollin-ai-launcher-pulse {
    display: none !important;
}
.rh-hero-orb_disabled {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.rh-hero-orb-1 {
    width: 360px; height: 360px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(138,43,214,0.55), transparent 60%);
    /* animation: rh-orb-float 12s ease-in-out infinite alternate */ animation: none;
}
.rh-hero-orb-2 {
    width: 280px; height: 280px;
    bottom: -100px; left: 15%;
    background: radial-gradient(circle, rgba(1,250,213,0.32), transparent 60%);
    /* animation: rh-orb-float 14s ease-in-out infinite alternate-reverse */ animation: none;
}
[data-theme="light"] .rh-hero-orb-1 {
    background: radial-gradient(circle, rgba(106,26,176,0.32), transparent 60%);
}
[data-theme="light"] .rh-hero-orb-2 {
    background: radial-gradient(circle, rgba(106,26,176,0.18), transparent 60%);
}
@keyframes rh-orb-float {
    0%   { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(-20px, 20px, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .rh-hero-orb-1, .rh-hero-orb-2 { animation: none; }
}

/* Sutil dot grid sobre o hero */
.rh-hero-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
[data-theme="light"] .rh-hero-mesh {
    background-image: radial-gradient(rgba(13,10,31,0.06) 1px, transparent 1px);
}

.rh-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 1.4fr;
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
}

/* === Hero left === */
.rh-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.04em;
    text-transform: capitalize;
    /* backdrop-filter removido pra performance */
}
[data-theme="light"] .rh-hero-eyebrow {
    background: rgba(255,255,255,0.7);
    border-color: rgba(13,10,31,0.08);
    color: rgba(13,10,31,0.7);
}
.rh-hero-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rh-cyan);
    box-shadow: 0 0 10px var(--rh-cyan), 0 0 0 0 rgba(1,250,213,0.7);
    /* animation: rh-pulse-dot 2s ease-out infinite */ animation: none;
}
@keyframes rh-pulse-dot {
    0%   { box-shadow: 0 0 10px var(--rh-cyan), 0 0 0 0 rgba(1,250,213,0.6); }
    70%  { box-shadow: 0 0 10px var(--rh-cyan), 0 0 0 10px rgba(1,250,213,0); }
    100% { box-shadow: 0 0 10px var(--rh-cyan), 0 0 0 0 rgba(1,250,213,0); }
}
[data-theme="light"] .rh-hero-pulse {
    background: var(--rh-purple);
    box-shadow: 0 0 10px rgba(106,26,176,0.5);
}

.rh-hero-title {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 18px 0 12px;
    color: var(--text-primary);
}
.rh-hero-name {
    background: linear-gradient(135deg, #b97aff 0%, #01fad5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .rh-hero-name {
    background: linear-gradient(135deg, #6a1ab0 0%, #8a2bd6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.rh-hero-sub {
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 460px;
    margin: 0 0 26px;
}

.rh-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Botões locais (premium) */
.rh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-full);
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 200ms cubic-bezier(.2,.7,.2,1),
                box-shadow 200ms ease,
                background 200ms ease,
                border-color 200ms ease;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.rh-btn i { width: 16px; height: 16px; }
.rh-btn-primary {
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff !important;
    box-shadow: 0 8px 28px rgba(138,43,214,0.4),
                inset 0 1px 0 rgba(255,255,255,0.15);
}
.rh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(138,43,214,0.55),
                inset 0 1px 0 rgba(255,255,255,0.2);
    text-decoration: none;
    color: #fff !important;
}
.rh-btn-cyan {
    background: linear-gradient(135deg, #01fad5, #00c2a6);
    color: #0a0014 !important;
    box-shadow: 0 8px 28px rgba(1,250,213,0.35),
                inset 0 1px 0 rgba(255,255,255,0.5);
    font-weight: 700;
}
.rh-btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(1,250,213,0.5);
    text-decoration: none;
    color: #0a0014 !important;
}
[data-theme="light"] .rh-btn-cyan {
    background: linear-gradient(135deg, #6a1ab0, #5710a0);
    color: #fff !important;
    box-shadow: 0 8px 28px rgba(106,26,176,0.35);
}
[data-theme="light"] .rh-btn-cyan:hover {
    color: #fff !important;
}
.rh-btn-ghost {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    color: var(--text-primary) !important;
    /* backdrop-filter removido pra performance */
}
.rh-btn-ghost:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.22);
    color: var(--text-primary) !important;
    text-decoration: none;
    transform: translateY(-2px);
}
[data-theme="light"] .rh-btn-ghost {
    background: rgba(255,255,255,0.7);
    border-color: rgba(13,10,31,0.10);
    color: #0d0a1f !important;
}
[data-theme="light"] .rh-btn-ghost:hover {
    background: #fff;
    border-color: rgba(13,10,31,0.18);
    color: #0d0a1f !important;
}

/* === Hero stats === */
.rh-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rh-stat {
    --rh-stat-color: var(--rh-purple);
    position: relative;
    display: block;
    padding: 22px 22px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    /* backdrop-filter removido pra performance */
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 220ms cubic-bezier(.2,.7,.2,1),
                border-color 220ms ease,
                background 220ms ease,
                box-shadow 220ms ease;
    overflow: hidden;
    isolation: isolate;
}
.rh-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--rh-stat-color), transparent 55%);
    opacity: 0.10;
    z-index: -1;
    transition: opacity 220ms ease;
}
.rh-stat:hover {
    transform: translateY(-4px);
    border-color: var(--rh-stat-color);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35),
                0 0 0 1px var(--rh-stat-color);
    color: inherit !important;
    text-decoration: none !important;
}
.rh-stat:hover::before { opacity: 0.22; }
[data-theme="light"] .rh-stat {
    background: rgba(255,255,255,0.85);
    border-color: rgba(13,10,31,0.08);
}
[data-theme="light"] .rh-stat:hover {
    background: #fff;
    box-shadow: 0 16px 40px rgba(106,26,176,0.18);
}

.rh-stat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--rh-stat-color) 14%, transparent);
    color: var(--rh-stat-color);
    margin-bottom: 12px;
}
.rh-stat-icon i { width: 18px; height: 18px; }

.rh-stat-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.rh-stat-lbl {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Sparkline decorative bars (puro CSS, sem dados reais) */
.rh-stat-spark {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
    opacity: 0.6;
}
.rh-stat-spark::before,
.rh-stat-spark::after,
.rh-stat-spark {
    background-image: linear-gradient(to top, var(--rh-stat-color), transparent);
}
.rh-stat-spark {
    background: linear-gradient(90deg,
        var(--rh-stat-color) 8%, transparent 8%, transparent 14%,
        var(--rh-stat-color) 14%, var(--rh-stat-color) 20%, transparent 20%, transparent 26%,
        var(--rh-stat-color) 26%, var(--rh-stat-color) 32%, transparent 32%, transparent 38%,
        var(--rh-stat-color) 38%, var(--rh-stat-color) 44%, transparent 44%, transparent 50%,
        var(--rh-stat-color) 50%, var(--rh-stat-color) 56%, transparent 56%, transparent 62%,
        var(--rh-stat-color) 62%, var(--rh-stat-color) 68%, transparent 68%, transparent 74%,
        var(--rh-stat-color) 74%, var(--rh-stat-color) 80%, transparent 80%, transparent 86%,
        var(--rh-stat-color) 86%, var(--rh-stat-color) 92%, transparent 92%);
    width: 60px;
    height: 22px;
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
    mask-image: linear-gradient(to top, #000 30%, transparent 100%);
    border-radius: 2px;
    opacity: 0.35;
    transition: opacity 220ms ease;
}
.rh-stat:hover .rh-stat-spark { opacity: 0.7; }

.rh-stat-alert .rh-stat-num { color: #ff5c7c; }

/* =============================================================
   STATUS RIBBON
   ============================================================= */

.rh-status-ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    margin: 0 0 var(--space-lg);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    /* backdrop-filter removido pra performance */
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
[data-theme="light"] .rh-status-ribbon {
    background: rgba(255,255,255,0.7);
    border-color: rgba(13,10,31,0.06);
}
.rh-status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.rh-status-item i { width: 14px; height: 14px; color: var(--text-muted); }
.rh-status-item strong {
    color: var(--text-primary);
    font-weight: 700;
}
.rh-status-sep {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-dim);
    opacity: 0.5;
}
.rh-status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--rh-cyan);
    box-shadow: 0 0 10px var(--rh-cyan);
    /* animation: rh-pulse-dot 2.4s ease-out infinite */ animation: none;
}
.rh-status-dot-ok { background: #19f29c; box-shadow: 0 0 10px #19f29c; }
@media (max-width: 640px) {
    .rh-status-ribbon { gap: 10px; padding: 12px 16px; border-radius: var(--radius-lg); }
    .rh-status-sep { display: none; }
}

/* =============================================================
   SECTION HEADER
   ============================================================= */

.rh-section {
    margin: 0 0 calc(var(--space-xl) + var(--space-sm));
    position: relative;
}
.rh-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
.rh-section-head-sm { margin-bottom: var(--space-md); }
.rh-section-eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rh-cyan);
    margin-bottom: 6px;
}
[data-theme="light"] .rh-section-eyebrow { color: var(--rh-purple); }
.rh-section-title {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.rh-link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--rh-cyan);
    text-decoration: none;
    transition: gap 200ms ease, color 200ms ease;
}
.rh-link-more:hover {
    gap: 10px;
    color: var(--rh-cyan);
    text-decoration: none;
}
.rh-link-more i { width: 14px; height: 14px; }
[data-theme="light"] .rh-link-more,
[data-theme="light"] .rh-link-more:hover { color: var(--rh-purple); }

/* =============================================================
   QUICK ACTIONS GRID
   ============================================================= */

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

.rh-qa-card {
    --rh-qa-tint: 138,43,214;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    /* backdrop-filter removido pra performance */
    text-decoration: none !important;
    color: inherit !important;
    isolation: isolate;
    overflow: hidden;
    transition: transform 250ms cubic-bezier(.2,.7,.2,1),
                border-color 250ms ease,
                box-shadow 250ms ease,
                background 250ms ease;
}
[data-theme="light"] .rh-qa-card {
    background: rgba(255,255,255,0.85);
    border-color: rgba(13,10,31,0.08);
    --rh-qa-tint: 106,26,176;
}

.rh-qa-glow {
    position: absolute;
    inset: -1px;
    z-index: -1;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--rh-qa-tint), 0.30), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(var(--rh-qa-tint), 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 250ms ease;
    border-radius: inherit;
}
.rh-qa-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--rh-qa-tint), 0.5);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35),
                0 0 0 1px rgba(var(--rh-qa-tint), 0.4);
    color: inherit !important;
    text-decoration: none !important;
}
.rh-qa-card:hover .rh-qa-glow { opacity: 1; }
[data-theme="light"] .rh-qa-card:hover {
    background: #fff;
    box-shadow: 0 16px 36px rgba(var(--rh-qa-tint), 0.18);
}

.rh-qa-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--rh-qa-tint), 0.14);
    color: rgb(var(--rh-qa-tint));
    border: 1px solid rgba(var(--rh-qa-tint), 0.25);
    transition: all 250ms ease;
}
.rh-qa-icon i { width: 22px; height: 22px; }
.rh-qa-card:hover .rh-qa-icon {
    background: rgb(var(--rh-qa-tint));
    color: #fff;
    border-color: transparent;
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(var(--rh-qa-tint), 0.5);
}

.rh-qa-body { flex: 1; min-width: 0; }
.rh-qa-body h3 {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.005em;
}
.rh-qa-body p {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}
.rh-qa-body p strong { color: var(--text-primary); font-weight: 700; }

.rh-qa-arrow {
    width: 18px; height: 18px;
    color: var(--text-dim);
    transition: transform 250ms cubic-bezier(.2,.7,.2,1), color 250ms ease;
    flex-shrink: 0;
}
.rh-qa-card:hover .rh-qa-arrow {
    transform: translate(3px, -3px);
    color: rgb(var(--rh-qa-tint));
}

.rh-qa-featured {
    background: linear-gradient(135deg, rgba(138,43,214,0.18), rgba(1,250,213,0.06));
    border-color: rgba(138,43,214,0.32);
}
[data-theme="light"] .rh-qa-featured {
    background: linear-gradient(135deg, rgba(106,26,176,0.10), rgba(255,255,255,0.6));
    border-color: rgba(106,26,176,0.20);
}
.rh-qa-urgent { border-color: rgba(255,92,124,0.4); }
.rh-qa-urgent .rh-qa-icon { background: rgba(255,92,124,0.14); color: #ff5c7c; border-color: rgba(255,92,124,0.3); }

/* =============================================================
   TWO-COLUMN: explore + announcements
   ============================================================= */

.rh-twocol {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    margin: 0 0 var(--space-2xl);
}
@media (max-width: 991px) {
    .rh-twocol { grid-template-columns: 1fr; }
}

/* === Explore card === */
.rh-explore {
    position: relative;
    padding: clamp(28px, 3vw, 40px);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(138,43,214,0.22), rgba(1,250,213,0.08) 60%, rgba(106,26,176,0.18)),
        rgba(21,0,40,0.6);
    border: 1px solid rgba(138,43,214,0.35);
    overflow: hidden;
    /* backdrop-filter removido pra performance */
    box-shadow: 0 20px 60px rgba(0,0,0,0.35),
                inset 0 1px 0 rgba(255,255,255,0.08);
}
[data-theme="light"] .rh-explore {
    background:
        linear-gradient(135deg, rgba(106,26,176,0.10), rgba(255,255,255,0.6) 60%, rgba(106,26,176,0.06)),
        rgba(255,255,255,0.9);
    border-color: rgba(106,26,176,0.18);
    box-shadow: 0 16px 50px rgba(106,26,176,0.10);
}

.rh-explore-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at top right, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at top right, #000 30%, transparent 75%);
}
[data-theme="light"] .rh-explore-bg {
    background-image: radial-gradient(rgba(13,10,31,0.07) 1px, transparent 1px);
}

.rh-explore > * { position: relative; z-index: 1; }

.rh-explore-eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--rh-cyan);
    margin-bottom: 12px;
}
[data-theme="light"] .rh-explore-eyebrow { color: var(--rh-purple); }

.rh-explore-title {
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-primary);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.rh-explore-sub {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 520px;
}

.rh-feature-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.rh-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
.rh-feature-list li strong { color: var(--text-primary); font-weight: 700; }
.rh-feature-list i {
    width: 16px; height: 16px;
    color: var(--rh-cyan);
    flex-shrink: 0;
}
[data-theme="light"] .rh-feature-list li {
    background: rgba(255,255,255,0.7);
    border-color: rgba(13,10,31,0.06);
}
[data-theme="light"] .rh-feature-list i { color: var(--rh-purple); }

/* === Announcements list === */
.rh-announce {
    display: flex;
    flex-direction: column;
}

.rh-announce-list {
    display: grid;
    gap: 12px;
}
.rh-announce-item {
    position: relative;
    display: block;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    /* backdrop-filter removido pra performance */
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 220ms cubic-bezier(.2,.7,.2,1),
                border-color 220ms ease,
                background 220ms ease;
}
.rh-announce-item::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 3px; height: 0;
    background: linear-gradient(180deg, #8a2bd6, #01fad5);
    border-radius: 0 2px 2px 0;
    transform: translateY(-50%);
    transition: height 250ms ease;
}
.rh-announce-item:hover {
    transform: translateX(2px);
    border-color: rgba(138,43,214,0.4);
    background: rgba(255,255,255,0.05);
    color: inherit !important;
    text-decoration: none !important;
}
.rh-announce-item:hover::before { height: 60%; }
[data-theme="light"] .rh-announce-item {
    background: rgba(255,255,255,0.85);
    border-color: rgba(13,10,31,0.06);
}
[data-theme="light"] .rh-announce-item:hover {
    background: #fff;
    border-color: rgba(106,26,176,0.25);
}

.rh-announce-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--rh-cyan);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.rh-announce-date i { width: 12px; height: 12px; }
[data-theme="light"] .rh-announce-date { color: var(--rh-purple); }

.rh-announce-title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.3;
}
.rh-announce-excerpt {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 10px;
}
.rh-announce-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--rh-cyan);
    transition: gap 200ms ease;
}
.rh-announce-cta i { width: 12px; height: 12px; }
.rh-announce-item:hover .rh-announce-cta { gap: 8px; }
[data-theme="light"] .rh-announce-cta { color: var(--rh-purple); }

.rh-announce-empty {
    padding: 32px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.10);
    color: var(--text-muted);
}
.rh-announce-empty i {
    width: 32px; height: 32px;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.rh-announce-empty p { margin: 0; font-size: var(--fs-sm); }
[data-theme="light"] .rh-announce-empty {
    background: rgba(255,255,255,0.6);
    border-color: rgba(13,10,31,0.08);
}

/* =============================================================
   NIKKO CHAT (rollin-chat.js · SVGs inline · zero Lucide)
   ============================================================= */

.rollin-chat-launcher {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    top: auto !important;
    left: auto !important;
    width: 60px !important;
    height: 60px !important;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(138,43,214,0.5);
    z-index: 9998 !important;
    padding: 0;
    transition: transform 200ms ease, box-shadow 200ms ease;
    pointer-events: auto !important;
    margin: 0 !important;
}
.rollin-chat-launcher:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 40px rgba(138,43,214,0.65);
}
.rollin-chat-launcher-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

/* === Panel === */
.rollin-chat-panel {
    position: fixed !important;
    bottom: 100px !important;
    right: 28px !important;
    top: auto !important;
    left: auto !important;
    z-index: 9999 !important;
    width: 380px;
    height: min(560px, calc(100vh - 140px));
    max-height: calc(100vh - 140px);
    background: #15002b;
    border: 1px solid rgba(138,43,214,0.4);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    margin: 0 !important;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}
[data-theme="light"] .rollin-chat-panel {
    background: #ffffff;
    border-color: rgba(106,26,176,0.25);
    box-shadow: 0 24px 50px rgba(106,26,176,0.18);
}
.rollin-chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* === Header === */
.rollin-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff;
    flex-shrink: 0;
}
.rollin-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.rollin-chat-avatar img { width: 24px; height: 24px; object-fit: contain; }
.rollin-chat-id { flex: 1; min-width: 0; line-height: 1.2; }
.rollin-chat-title { font-size: 14px; font-weight: 700; color: #fff; }
.rollin-chat-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.82);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.rollin-chat-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #19f29c;
    flex-shrink: 0;
}
.rollin-chat-sep {
    opacity: 0.45;
    margin: 0 4px;
    font-weight: 300;
}
.rollin-chat-close {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 150ms ease;
}
.rollin-chat-close:hover { background: rgba(255,255,255,0.20); }

/* === Messages === */
.rollin-chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}
/* Mensagens grudam embaixo (estilo WhatsApp) — quando há poucas, ficam coladas no input */
.rollin-chat-messages > :first-child { margin-top: auto; }
.rollin-chat-messages::-webkit-scrollbar { width: 6px; }
.rollin-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(138,43,214,0.3);
    border-radius: 3px;
}
.rollin-chat-messages::-webkit-scrollbar-track { background: transparent; }

.rollin-chat-msg {
    max-width: 88%;
    font-size: 13.5px;
    line-height: 1.5;
}
.rollin-chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff;
    padding: 9px 13px;
    border-radius: 14px 14px 4px 14px;
}
.rollin-chat-msg.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    padding: 9px 13px;
    border-radius: 4px 14px 14px 14px;
}
[data-theme="light"] .rollin-chat-msg.bot {
    background: rgba(13,10,31,0.04);
    border-color: rgba(13,10,31,0.08);
    color: rgba(13,10,31,0.85);
}
.rollin-chat-msg.welcome {
    background: linear-gradient(135deg, rgba(138,43,214,0.14), rgba(1,250,213,0.05));
    border-color: rgba(138,43,214,0.28);
    max-width: 100%;
}
.rollin-chat-msg.welcome p { margin: 0 0 6px; }
.rollin-chat-msg.welcome p:last-child { margin-bottom: 0; }
.rollin-chat-msg-text {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}
.rollin-chat-msg-text a {
    color: var(--rh-cyan);
    text-decoration: underline;
    /* URLs longas só quebram em separadores naturais (/-.?&=), não no meio de palavras */
    word-break: normal;
    overflow-wrap: anywhere;
    display: inline;
}
.rollin-chat-msg-text a:hover { opacity: 0.85; }
[data-theme="light"] .rollin-chat-msg-text a { color: var(--rh-purple); }
.rollin-chat-msg.user .rollin-chat-msg-text a { color: #fff; }

/* === Quick replies === */
.rollin-chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.rollin-chat-quick-btn {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(138,43,214,0.4);
    color: rgba(255,255,255,0.92);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease, border-color 150ms ease;
}
.rollin-chat-quick-btn:hover {
    background: rgba(138,43,214,0.20);
    border-color: rgba(138,43,214,0.7);
    color: #fff;
}
[data-theme="light"] .rollin-chat-quick-btn {
    background: #fff;
    border-color: rgba(106,26,176,0.3);
    color: #2a1a4a;
}
[data-theme="light"] .rollin-chat-quick-btn:hover {
    background: rgba(106,26,176,0.08);
    border-color: rgba(106,26,176,0.55);
    color: #0d0a1f;
}

/* === Typing dots === */
.rollin-chat-typing { padding: 12px 14px !important; }
.rollin-chat-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.rollin-chat-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rh-cyan);
    opacity: 0.6;
}
[data-theme="light"] .rollin-chat-dots span { background: var(--rh-purple); }

/* === Handoff prompt === */
.rollin-chat-handoff {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-top: 4px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(1,250,213,0.10), rgba(138,43,214,0.10));
    border: 1px solid rgba(1,250,213,0.3);
    align-self: stretch;
}
/* Lana form layout — overrides row to column */
.rollin-chat-handoff:has(.rollin-lana-form) {
    flex-direction: column;
    align-items: stretch;
}
[data-theme="light"] .rollin-chat-handoff {
    background: linear-gradient(135deg, rgba(106,26,176,0.07), rgba(1,250,213,0.05));
    border-color: rgba(106,26,176,0.25);
}
.rollin-chat-handoff-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.rollin-chat-handoff-text strong { color: var(--text-primary); font-weight: 700; font-size: 12.5px; }
.rollin-chat-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37,211,102,0.32);
    flex-shrink: 0;
    font-family: inherit;
}
.rollin-chat-wa-btn:hover {
    box-shadow: 0 6px 16px rgba(37,211,102,0.48);
    color: #fff !important;
    text-decoration: none !important;
}
.rollin-chat-wa-btn svg { width: 14px; height: 14px; }
.rollin-chat-wa-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.rollin-chat-wa-inline { align-self: center; margin-top: 2px; }
/* Lana mini-form */
.rollin-lana-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.rollin-lana-form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 4px;
    line-height: 1.35;
}
.rollin-lana-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(1,250,213,0.35);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.rollin-lana-input::placeholder { color: var(--text-secondary); opacity: 0.7; }
.rollin-lana-input:focus { border-color: rgba(1,250,213,0.7); background: rgba(255,255,255,0.10); }
[data-theme="light"] .rollin-lana-input {
    background: rgba(255,255,255,0.7);
    border-color: rgba(106,26,176,0.3);
    color: #1a1a2e;
}
[data-theme="light"] .rollin-lana-input:focus { border-color: rgba(106,26,176,0.7); }
.rollin-lana-submit { align-self: stretch; justify-content: center; border-radius: 8px; }

/* === Form === */
.rollin-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
[data-theme="light"] .rollin-chat-form { border-top-color: rgba(13,10,31,0.06); }
.rollin-chat-input {
    flex: 1;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 999px !important;
    color: var(--text-primary) !important;
    font-size: 13.5px !important;
    padding: 9px 14px !important;
    font-family: inherit !important;
    outline: none !important;
}
.rollin-chat-input:focus {
    border-color: var(--rh-purple) !important;
    box-shadow: 0 0 0 3px rgba(138,43,214,0.18) !important;
}
[data-theme="light"] .rollin-chat-input {
    background: #fff !important;
    border-color: rgba(13,10,31,0.12) !important;
    color: #0d0a1f !important;
}
.rollin-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(138,43,214,0.4);
    transition: transform 150ms ease;
}
.rollin-chat-send:hover { transform: scale(1.08); }
.rollin-chat-send:disabled, .rollin-chat-input:disabled { opacity: 0.5; cursor: not-allowed; }
.rollin-chat-send svg { width: 16px; height: 16px; }

/* === Foot === */
.rollin-chat-foot {
    text-align: center;
    padding: 6px 16px 10px;
    font-size: 10.5px;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* =============================================================
   CTA CARDS — smart parsing + ui_actions estruturadas
   ============================================================= */

.rollin-chat-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(138,43,214,0.18), rgba(1,250,213,0.08));
    border: 1px solid rgba(138,43,214,0.4);
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    align-self: stretch;
    margin-top: 4px;
    cursor: pointer;
}
.rollin-chat-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(138,43,214,0.7);
    box-shadow: 0 8px 24px rgba(138,43,214,0.35);
    text-decoration: none !important;
    color: var(--text-primary) !important;
}
[data-theme="light"] .rollin-chat-cta {
    background: linear-gradient(135deg, rgba(106,26,176,0.08), rgba(255,255,255,0.6));
    border-color: rgba(106,26,176,0.3);
}

.rollin-chat-cta-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(138,43,214,0.32);
}
.rollin-chat-cta-icon svg { width: 18px; height: 18px; }

.rollin-chat-cta-body {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.rollin-chat-cta-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
.rollin-chat-cta-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.rollin-chat-cta-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 160ms ease, color 160ms ease;
}
.rollin-chat-cta-arrow svg { width: 16px; height: 16px; }
.rollin-chat-cta:hover .rollin-chat-cta-arrow {
    color: var(--rh-cyan);
    transform: translate(2px, -2px);
}
[data-theme="light"] .rollin-chat-cta:hover .rollin-chat-cta-arrow { color: var(--rh-purple); }

/* Tons */
.rollin-chat-cta-urgent {
    background: linear-gradient(135deg, rgba(255,92,124,0.15), rgba(255,184,0,0.08));
    border-color: rgba(255,92,124,0.4);
}
.rollin-chat-cta-urgent .rollin-chat-cta-icon {
    background: linear-gradient(135deg, #ff5c7c, #d9395e);
    box-shadow: 0 4px 12px rgba(255,92,124,0.32);
}
.rollin-chat-cta-neutral {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.10);
}
[data-theme="light"] .rollin-chat-cta-neutral {
    background: rgba(255,255,255,0.7);
    border-color: rgba(13,10,31,0.08);
}
.rollin-chat-cta-neutral .rollin-chat-cta-icon {
    background: rgba(255,255,255,0.06);
    color: var(--rh-cyan);
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.10);
}
[data-theme="light"] .rollin-chat-cta-neutral .rollin-chat-cta-icon {
    background: rgba(106,26,176,0.07);
    color: var(--rh-purple);
    border-color: rgba(106,26,176,0.2);
}

/* =============================================================
   SERVICE / INVOICE CARDS (FASE 2 — vindos do FastAPI)
   ============================================================= */

.rollin-chat-card {
    align-self: stretch;
    margin-top: 4px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
[data-theme="light"] .rollin-chat-card {
    background: rgba(255,255,255,0.85);
    border-color: rgba(13,10,31,0.08);
}
.rollin-chat-card.urgent {
    background: linear-gradient(135deg, rgba(255,92,124,0.12), rgba(255,255,255,0.04));
    border-color: rgba(255,92,124,0.35);
}

.rollin-chat-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rollin-chat-card-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(138,43,214,0.18);
    color: var(--rh-purple);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
[data-theme="light"] .rollin-chat-card-icon { background: rgba(106,26,176,0.10); }
.rollin-chat-card-icon svg { width: 16px; height: 16px; }
.rollin-chat-card-title {
    flex: 1; min-width: 0;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rollin-chat-card-badge {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}
.rollin-chat-card-badge-ok { background: rgba(25,242,156,0.18); color: #19f29c; border: 1px solid rgba(25,242,156,0.32); }
.rollin-chat-card-badge-warn { background: rgba(255,184,0,0.16); color: #ffb800; border: 1px solid rgba(255,184,0,0.32); }
.rollin-chat-card-badge-urgent { background: rgba(255,92,124,0.16); color: #ff5c7c; border: 1px solid rgba(255,92,124,0.32); }

.rollin-chat-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.rollin-chat-card-amount {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.rollin-chat-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
}
.rollin-chat-card-meta svg { width: 12px; height: 12px; }

.rollin-chat-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 4px;
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 4px 14px rgba(138,43,214,0.32);
}
.rollin-chat-card-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(138,43,214,0.5);
    color: #fff !important;
    text-decoration: none !important;
}
.rollin-chat-card-cta svg { width: 13px; height: 13px; }
.rollin-chat-card-cta.urgent {
    background: linear-gradient(135deg, #ff5c7c, #d9395e);
    box-shadow: 0 4px 14px rgba(255,92,124,0.4);
}
.rollin-chat-card-cta.urgent:hover { box-shadow: 0 8px 20px rgba(255,92,124,0.55); }

/* === Image inside chat === */
.rollin-chat-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-top: 4px;
}

/* === Progress bar === */
.rollin-chat-progress {
    align-self: stretch;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 4px;
}
[data-theme="light"] .rollin-chat-progress {
    background: rgba(255,255,255,0.7);
    border-color: rgba(13,10,31,0.06);
}
.rollin-chat-progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.rollin-chat-progress-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
[data-theme="light"] .rollin-chat-progress-bar { background: rgba(13,10,31,0.08); }
.rollin-chat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a2bd6, #01fad5);
    transition: width 400ms ease;
}

/* === Highlight pulse (quando Nikko aponta um elemento da página) === */
@keyframes rh-highlight-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(1,250,213,0.7); }
    70%  { box-shadow: 0 0 0 18px rgba(1,250,213,0); }
    100% { box-shadow: 0 0 0 0 rgba(1,250,213,0); }
}
.rh-highlight-pulse {
    animation: rh-highlight-pulse 1.4s ease-out 2;
    position: relative;
    z-index: 10;
}

/* =============================================================
   FASE 3 — Premium UX (SLA, badge, avatar pulse, shortcuts,
   confirm modal, resume banner, reactions, proactive, tutorial)
   ============================================================= */

/* === SLA line abaixo do subtitle === */
.rollin-chat-sla {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    margin-top: 1px;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

/* === Avatar pulse quando Nikko está pensando === */
.rollin-chat-avatar { position: relative; }
.rollin-chat-avatar.is-thinking::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(1,250,213,0.7);
    animation: nikko-thinking-pulse 1.5s ease-out infinite;
    pointer-events: none;
}
@keyframes nikko-thinking-pulse {
    0%   { transform: scale(0.95); opacity: 0.85; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.3);  opacity: 0; }
}

/* === Badge no launcher === */
.rollin-chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3d63, #ff6b8e);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow:
        0 0 0 2px #fff,
        0 6px 14px rgba(255,61,99,0.6);
    z-index: 10;
    pointer-events: none;
    animation: rh-badge-pulse 1.6s ease-in-out infinite;
}
[data-theme="light"] .rollin-chat-badge {
    box-shadow:
        0 0 0 2px #fafafc,
        0 6px 14px rgba(255,61,99,0.55);
}
@keyframes rh-badge-pulse {
    0%, 100% { transform: scale(1);    }
    50%      { transform: scale(1.08); }
}
[data-theme="light"] .rollin-chat-badge { border-color: #fafafc; }

/* === Toast proativo (ao lado do launcher) === */
.rollin-chat-proactive {
    position: fixed;
    bottom: 36px;
    right: 100px;
    max-width: 280px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #15002b, #1f0040);
    color: #fff;
    border: 1px solid rgba(138,43,214,0.4);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 799;
    font-size: 12.5px;
    line-height: 1.4;
    animation: rh-proactive-in 320ms cubic-bezier(.34,1.4,.55,1);
}
@keyframes rh-proactive-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.rollin-chat-proactive::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid rgba(138,43,214,0.4);
}
.rollin-chat-proactive-text {
    flex: 1;
    color: #fff;
}
.rollin-chat-proactive-close {
    width: 22px; height: 22px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
}
.rollin-chat-proactive-close:hover { background: rgba(255,255,255,0.18); color: #fff; }
[data-theme="light"] .rollin-chat-proactive {
    background: #fff;
    color: #0d0a1f;
    border-color: rgba(106,26,176,0.3);
}
[data-theme="light"] .rollin-chat-proactive-text { color: #0d0a1f; }
[data-theme="light"] .rollin-chat-proactive::after { border-left-color: rgba(106,26,176,0.3); }
[data-theme="light"] .rollin-chat-proactive-close { background: rgba(0,0,0,0.05); color: rgba(13,10,31,0.6); }
[data-theme="light"] .rollin-chat-proactive-close:hover { background: rgba(106,26,176,0.1); color: var(--rh-purple); }

@media (max-width: 768px) {
    .rollin-chat-proactive {
        bottom: 156px;
        right: 12px;
        max-width: calc(100vw - 80px);
    }
    .rollin-chat-proactive::after { display: none; }
}

/* === Footer shortcuts === */
.rollin-chat-shortcuts {
    display: flex;
    gap: 4px;
    padding: 6px 10px 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
[data-theme="light"] .rollin-chat-shortcuts { border-top-color: rgba(13,10,31,0.05); }
.rollin-chat-shortcut {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 8px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted) !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 150ms ease, color 150ms ease;
}
.rollin-chat-shortcut svg { width: 13px; height: 13px; flex-shrink: 0; }
.rollin-chat-shortcut:hover {
    background: rgba(138,43,214,0.10);
    color: var(--text-primary) !important;
    text-decoration: none !important;
}
[data-theme="light"] .rollin-chat-shortcut:hover {
    background: rgba(106,26,176,0.07);
    color: #0d0a1f !important;
}

/* === Confirm modal inline (preview do plano) === */
.rollin-chat-confirm {
    align-self: stretch;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(138,43,214,0.20), rgba(1,250,213,0.06));
    border: 1px solid rgba(138,43,214,0.5);
    margin-top: 4px;
    animation: rh-ai-msg-in 280ms cubic-bezier(.2,.7,.2,1);
}
[data-theme="light"] .rollin-chat-confirm {
    background: linear-gradient(135deg, rgba(106,26,176,0.10), rgba(255,255,255,0.7));
    border-color: rgba(106,26,176,0.35);
}
.rollin-chat-confirm-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rollin-chat-confirm-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(138,43,214,0.32);
}
.rollin-chat-confirm-icon svg { width: 16px; height: 16px; }
.rollin-chat-confirm-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
.rollin-chat-confirm-title strong { font-weight: 800; }
.rollin-chat-confirm-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    margin-left: 42px;
}
.rollin-chat-confirm-details {
    list-style: none;
    margin: 8px 0 0 42px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rollin-chat-confirm-details li {
    font-size: 11.5px;
    color: var(--text-secondary);
    padding-left: 14px;
    position: relative;
}
.rollin-chat-confirm-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #19f29c;
    font-weight: 700;
}
.rollin-chat-confirm-url {
    margin: 8px 0 12px 42px;
    font-size: 10.5px;
    color: var(--text-dim);
    font-family: 'SF Mono', Consolas, monospace;
    word-break: break-all;
}
.rollin-chat-confirm-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.rollin-chat-confirm-actions button {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.rollin-chat-confirm-cancel {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.10) !important;
}
.rollin-chat-confirm-cancel:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
}
[data-theme="light"] .rollin-chat-confirm-cancel {
    background: #fff;
    color: rgba(13,10,31,0.6);
    border-color: rgba(13,10,31,0.10) !important;
}
[data-theme="light"] .rollin-chat-confirm-cancel:hover { background: rgba(13,10,31,0.04); color: #0d0a1f; }
.rollin-chat-confirm-go {
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff;
    box-shadow: 0 4px 14px rgba(138,43,214,0.4);
}
.rollin-chat-confirm-go:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(138,43,214,0.55);
}

/* === Resume banner (continuar de onde parou) === */
.rollin-chat-resume-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.12);
    font-size: 11px;
    color: var(--text-muted);
}
[data-theme="light"] .rollin-chat-resume-banner {
    background: rgba(13,10,31,0.03);
    border-color: rgba(13,10,31,0.10);
}
.rollin-chat-resume-clear {
    background: transparent;
    border: 1px solid rgba(138,43,214,0.4);
    color: var(--rh-cyan);
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease;
}
.rollin-chat-resume-clear:hover { background: rgba(138,43,214,0.15); }
[data-theme="light"] .rollin-chat-resume-clear {
    color: var(--rh-purple);
    border-color: rgba(106,26,176,0.4);
}
[data-theme="light"] .rollin-chat-resume-clear:hover { background: rgba(106,26,176,0.08); }

/* === Reactions nas mensagens do bot === */
.rollin-chat-rxn {
    display: flex;
    gap: 2px;
    margin-top: 4px;
    margin-left: -2px;
    opacity: 0;
    transition: opacity 200ms ease;
}
.rollin-chat-msg.bot:hover .rollin-chat-rxn { opacity: 1; }
.rollin-chat-rxn-btn {
    width: 24px; height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    border-radius: 6px;
    line-height: 1;
    transition: background 150ms ease, transform 150ms ease;
    opacity: 0.55;
}
.rollin-chat-rxn-btn:hover {
    background: rgba(255,255,255,0.08);
    opacity: 1;
    transform: scale(1.15);
}
.rollin-chat-rxn-btn.active {
    opacity: 1;
    background: rgba(138,43,214,0.18);
}
[data-theme="light"] .rollin-chat-rxn-btn:hover { background: rgba(13,10,31,0.06); }
[data-theme="light"] .rollin-chat-rxn-btn.active { background: rgba(106,26,176,0.10); }

/* Em mobile, sempre visível */
@media (max-width: 768px) {
    .rollin-chat-rxn { opacity: 0.5; }
}

/* === Tutorial card === */
.rollin-chat-tutorial {
    align-self: stretch;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
[data-theme="light"] .rollin-chat-tutorial {
    background: rgba(255,255,255,0.85);
    border-color: rgba(13,10,31,0.08);
}
.rollin-chat-tutorial-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rollin-chat-tutorial-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #01fad5, #00c2a6);
    color: #0a0014;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rollin-chat-tutorial-icon svg { width: 16px; height: 16px; }
.rollin-chat-tutorial-title {
    flex: 1;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}
.rollin-chat-tutorial-duration {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--rh-cyan);
    background: rgba(1,250,213,0.12);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(1,250,213,0.3);
    flex-shrink: 0;
}
[data-theme="light"] .rollin-chat-tutorial-duration {
    color: var(--rh-purple);
    background: rgba(106,26,176,0.07);
    border-color: rgba(106,26,176,0.25);
}
.rollin-chat-tutorial-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.rollin-chat-tutorial-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.rollin-chat-tutorial-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--rh-cyan);
    text-decoration: none !important;
}
.rollin-chat-tutorial-link svg { width: 14px; height: 14px; }
[data-theme="light"] .rollin-chat-tutorial-link { color: var(--rh-purple); }
.rollin-chat-tutorial-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: tutorial-step;
}
.rollin-chat-tutorial-steps li {
    counter-increment: tutorial-step;
    position: relative;
    padding: 8px 0 8px 32px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.rollin-chat-tutorial-steps li:first-child { border-top: none; padding-top: 4px; }
.rollin-chat-tutorial-steps li::before {
    content: counter(tutorial-step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="light"] .rollin-chat-tutorial-steps li { border-top-color: rgba(13,10,31,0.06); }

/* =============================================================
   FASE 4 — Voice, Density, Resize, Export, History, Menu
   ============================================================= */

/* === Fix universal: [hidden] sempre vence === */
.rollin-chat-launcher [hidden],
.rollin-chat-panel [hidden],
.rollin-chat-proactive[hidden],
.rollin-chat-badge[hidden],
.rollin-chat-menu-panel[hidden],
.rollin-chat-history-panel[hidden],
.rollin-chat-mic[hidden],
[hidden].rollin-chat-badge,
[hidden].rollin-chat-menu-panel,
[hidden].rollin-chat-history-panel,
[hidden].rollin-chat-proactive,
[hidden].rollin-chat-mic {
    display: none !important;
}

/* === Resize handle (top-left corner) === */
.rollin-chat-resize {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
    z-index: 10;
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.0) 0%,
            rgba(255,255,255,0.0) 30%,
            rgba(255,255,255,0.18) 30%,
            rgba(255,255,255,0.18) 38%,
            rgba(255,255,255,0.0) 38%,
            rgba(255,255,255,0.0) 50%,
            rgba(255,255,255,0.18) 50%,
            rgba(255,255,255,0.18) 58%,
            rgba(255,255,255,0.0) 58%,
            rgba(255,255,255,0.0) 70%,
            rgba(255,255,255,0.18) 70%,
            rgba(255,255,255,0.18) 78%,
            rgba(255,255,255,0.0) 78%
        );
    border-top-left-radius: 18px;
    transition: background 200ms ease;
    touch-action: none;
}
.rollin-chat-resize:hover {
    background:
        linear-gradient(135deg,
            rgba(1,250,213,0.0) 0%,
            rgba(1,250,213,0.0) 30%,
            rgba(1,250,213,0.6) 30%,
            rgba(1,250,213,0.6) 38%,
            rgba(1,250,213,0.0) 38%,
            rgba(1,250,213,0.0) 50%,
            rgba(1,250,213,0.6) 50%,
            rgba(1,250,213,0.6) 58%,
            rgba(1,250,213,0.0) 58%,
            rgba(1,250,213,0.0) 70%,
            rgba(1,250,213,0.6) 70%,
            rgba(1,250,213,0.6) 78%,
            rgba(1,250,213,0.0) 78%
        );
}
[data-theme="light"] .rollin-chat-resize {
    background-image:
        linear-gradient(135deg,
            rgba(13,10,31,0.0) 0%,
            rgba(13,10,31,0.0) 30%,
            rgba(13,10,31,0.18) 30%,
            rgba(13,10,31,0.18) 38%,
            rgba(13,10,31,0.0) 38%,
            rgba(13,10,31,0.0) 50%,
            rgba(13,10,31,0.18) 50%,
            rgba(13,10,31,0.18) 58%,
            rgba(13,10,31,0.0) 58%,
            rgba(13,10,31,0.0) 70%,
            rgba(13,10,31,0.18) 70%,
            rgba(13,10,31,0.18) 78%,
            rgba(13,10,31,0.0) 78%
        );
}
@media (max-width: 768px) { .rollin-chat-resize { display: none; } }

/* === Density: compact === */
.rollin-chat-panel[data-density="compact"] .rollin-chat-messages {
    padding: 12px 14px;
    gap: 6px;
}
.rollin-chat-panel[data-density="compact"] .rollin-chat-msg {
    font-size: 12.5px;
}
.rollin-chat-panel[data-density="compact"] .rollin-chat-msg.user,
.rollin-chat-panel[data-density="compact"] .rollin-chat-msg.bot {
    padding: 7px 11px;
}
.rollin-chat-panel[data-density="compact"] .rollin-chat-header {
    padding: 10px 14px;
}
.rollin-chat-panel[data-density="compact"] .rollin-chat-sla {
    display: none;
}
.rollin-chat-panel[data-density="compact"] .rollin-chat-form {
    padding: 8px 14px 4px;
}
.rollin-chat-panel[data-density="compact"] .rollin-chat-shortcuts {
    padding: 4px 10px 8px;
}

/* === Mic button (voice input) === */
.rollin-chat-mic {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 150ms ease, color 150ms ease;
    padding: 0;
}
.rollin-chat-mic:hover {
    background: rgba(138,43,214,0.15);
    color: var(--rh-cyan);
}
.rollin-chat-mic svg { width: 16px; height: 16px; }
.rollin-chat-mic.is-recording {
    background: rgba(255,92,124,0.18);
    border-color: rgba(255,92,124,0.5);
    color: #ff5c7c;
    animation: rh-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes rh-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,92,124,0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(255,92,124,0); }
}
[data-theme="light"] .rollin-chat-mic {
    background: rgba(255,255,255,0.7);
    border-color: rgba(13,10,31,0.10);
    color: rgba(13,10,31,0.5);
}
[data-theme="light"] .rollin-chat-mic:hover {
    background: rgba(106,26,176,0.08);
    color: var(--rh-purple);
}

/* === Audio player nas mensagens (TTS Nikko) === */
.rollin-chat-audio {
    width: 100%;
    margin-top: 8px;
    border-radius: 999px;
    height: 32px;
    outline: none;
}
.rollin-chat-audio::-webkit-media-controls-panel {
    background: rgba(106,26,176,0.06);
}

/* === Menu (3 pontos) no header + dropdown === */
.rollin-chat-menu-wrap { position: relative; flex-shrink: 0; }
.rollin-chat-icon-btn {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 150ms ease;
}
.rollin-chat-icon-btn:hover { background: rgba(255,255,255,0.20); }
.rollin-chat-icon-btn svg { width: 14px; height: 14px; }

.rollin-chat-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #1f0040;
    border: 1px solid rgba(138,43,214,0.4);
    border-radius: 12px;
    padding: 6px;
    z-index: 20;
    box-shadow: 0 14px 36px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: rh-menu-in 160ms ease;
}
@keyframes rh-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
[data-theme="light"] .rollin-chat-menu-panel {
    background: #ffffff;
    border-color: rgba(106,26,176,0.2);
    box-shadow: 0 14px 28px rgba(106,26,176,0.18);
}
.rollin-chat-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 120ms ease, color 120ms ease;
}
.rollin-chat-menu-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.8; }
.rollin-chat-menu-item:hover {
    background: rgba(138,43,214,0.18);
    color: #fff;
}
.rollin-chat-menu-item:hover svg { opacity: 1; }
[data-theme="light"] .rollin-chat-menu-item { color: rgba(13,10,31,0.78); }
[data-theme="light"] .rollin-chat-menu-item:hover {
    background: rgba(106,26,176,0.08);
    color: #0d0a1f;
}
.rollin-chat-menu-danger { color: #ff8aa0 !important; }
.rollin-chat-menu-danger:hover { background: rgba(255,92,124,0.15) !important; color: #ff8aa0 !important; }
[data-theme="light"] .rollin-chat-menu-danger { color: #d9395e !important; }
[data-theme="light"] .rollin-chat-menu-danger:hover { background: rgba(255,92,124,0.10) !important; color: #b8253e !important; }
.rollin-chat-menu-sep {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 4px 0;
}
[data-theme="light"] .rollin-chat-menu-sep { background: rgba(13,10,31,0.08); }

/* === Painel de histórico de conversas === */
.rollin-chat-history-panel {
    position: absolute;
    inset: 0;
    background: inherit;
    background-color: #15002b;
    z-index: 5;
    display: flex;
    flex-direction: column;
    animation: rh-ai-msg-in 220ms ease;
}
[data-theme="light"] .rollin-chat-history-panel { background-color: #ffffff; }

.rollin-chat-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.rollin-chat-history-close {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rollin-chat-history-close:hover { background: rgba(255,255,255,0.20); }

.rollin-chat-history-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rollin-chat-history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 32px 16px;
    font-size: 12.5px;
    line-height: 1.5;
}
.rollin-chat-history-item {
    display: flex;
    align-items: stretch;
    gap: 4px;
    border-radius: 10px;
    overflow: hidden;
}
.rollin-chat-history-load {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary);
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 10px;
    font-family: inherit;
    transition: background 150ms ease, border-color 150ms ease;
}
.rollin-chat-history-load:hover {
    background: rgba(138,43,214,0.12);
    border-color: rgba(138,43,214,0.35);
}
[data-theme="light"] .rollin-chat-history-load {
    background: rgba(255,255,255,0.85);
    border-color: rgba(13,10,31,0.08);
}
[data-theme="light"] .rollin-chat-history-load:hover {
    background: rgba(106,26,176,0.07);
    border-color: rgba(106,26,176,0.25);
}
.rollin-chat-history-preview {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rollin-chat-history-meta {
    font-size: 10.5px;
    color: var(--text-muted);
}
.rollin-chat-history-del {
    width: 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
    transition: background 150ms ease, color 150ms ease;
    flex-shrink: 0;
}
.rollin-chat-history-del:hover {
    background: rgba(255,92,124,0.15);
    color: #ff8aa0;
    border-color: rgba(255,92,124,0.3);
}
[data-theme="light"] .rollin-chat-history-del {
    background: #fff;
    border-color: rgba(13,10,31,0.08);
}
[data-theme="light"] .rollin-chat-history-del:hover {
    background: rgba(255,92,124,0.10);
    color: #d9395e;
    border-color: rgba(255,92,124,0.3);
}

/* === Mobile === */
@media (max-width: 768px) {
    .rollin-chat-launcher {
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        right: 18px;
        width: 56px;
        height: 56px;
    }
    .rollin-chat-launcher-icon { width: 26px; height: 26px; }

    /* Fullscreen "app mode" — sem margens, sem borda arredondada externa */
    .rollin-chat-panel {
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: none !important;
        z-index: 9999 !important;
    }
    /* Esconde launcher quando o chat está aberto em mobile */
    body.rollin-chat-open .rollin-chat-launcher { display: none !important; }
    /* Bloqueia scroll do body atrás do chat fullscreen */
    body.rollin-chat-open { overflow: hidden; }

    /* Header com safe area pro notch */
    .rollin-chat-panel .rollin-chat-header {
        padding-top: calc(14px + env(safe-area-inset-top, 0px));
        border-radius: 0;
    }
    /* Loja/Entrar/Criar conta — manter visível com safe area pro home indicator */
    .rollin-chat-panel .rollin-chat-shortcuts {
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
    /* Mensagens com mais respiro lateral */
    .rollin-chat-panel .rollin-chat-messages {
        padding-left: 14px;
        padding-right: 14px;
    }
    .rollin-chat-panel .rollin-chat-msg { max-width: 88%; }

    /* Esconde botão de redimensionar e densidade — não fazem sentido em mobile */
    .rollin-chat-panel .rollin-chat-resize { display: none; }

    /* === Header — botões maiores e gap claro entre eles (mobile-friendly) === */
    .rollin-chat-panel .rollin-chat-header {
        gap: 10px;
    }
    .rollin-chat-panel .rollin-chat-icon-btn,
    .rollin-chat-panel .rollin-chat-close {
        width: 36px;
        height: 36px;
    }
    .rollin-chat-panel .rollin-chat-icon-btn svg,
    .rollin-chat-panel .rollin-chat-close svg {
        width: 18px;
        height: 18px;
    }
    .rollin-chat-panel .rollin-chat-menu-wrap {
        margin-right: 4px;
    }

    /* Subtítulo "Online · Suporte | Rollin" em uma linha só — sem quebra */
    .rollin-chat-panel .rollin-chat-subtitle {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .rollin-chat-panel .rollin-chat-id { min-width: 0; flex: 1; }

    /* === Form footer — input e ícones com tamanho de toque adequado === */
    .rollin-chat-panel .rollin-chat-form {
        gap: 10px;
        padding: 14px 14px 8px;
    }
    .rollin-chat-panel .rollin-chat-input {
        font-size: 15px !important;
        padding: 12px 16px !important;
    }
    .rollin-chat-panel .rollin-chat-mic,
    .rollin-chat-panel .rollin-chat-send {
        width: 44px;
        height: 44px;
    }
    .rollin-chat-panel .rollin-chat-mic svg,
    .rollin-chat-panel .rollin-chat-send svg {
        width: 18px;
        height: 18px;
    }
}

/* iOS / Android Safari — força viewport correto quando teclado abre */
@media (max-width: 768px) and (orientation: portrait) {
    .rollin-chat-panel {
        height: 100dvh;
    }
}

/* =============================================================
   NIKKO AI CHAT — launcher + panel
   ============================================================= */

/* === Launcher === */
#rollin-ai-launcher {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    border: 1px solid rgba(255,255,255,0.14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 36px rgba(138,43,214,0.5),
                inset 0 1px 0 rgba(255,255,255,0.22);
    transition: transform 250ms cubic-bezier(.2,.7,.2,1),
                box-shadow 250ms ease;
    z-index: 800;
    padding: 0;
}
.rollin-ai-launcher-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.rollin-ai-launcher-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(138,43,214,0.45);
    /* animation: rh-ai-ring 2.6s ease-out infinite */ animation: none;
    pointer-events: none;
}
@keyframes rh-ai-ring {
    0%   { transform: scale(0.96); opacity: 0.85; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.3);  opacity: 0; }
}
#rollin-ai-launcher:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 22px 56px rgba(138,43,214,0.65);
}

/* === Panel === */
#rollin-ai-panel {
    position: fixed;
    bottom: 108px;
    right: 28px;
    width: 400px;
    height: min(620px, calc(100vh - 140px));
    max-height: calc(100vh - 140px);
    background: rgba(21,0,40,0.96);
    border: 1px solid rgba(138,43,214,0.38);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6),
                inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    z-index: 801;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms cubic-bezier(.34,1.4,.55,1),
                opacity 220ms ease;
    /* backdrop-filter removido pra performance */
    /* -webkit-backdrop-filter removido pra performance */
}
[data-theme="light"] #rollin-ai-panel {
    background: rgba(255,255,255,0.98);
    border-color: rgba(106,26,176,0.22);
    box-shadow: 0 30px 70px rgba(106,26,176,0.18);
}
#rollin-ai-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* === Header === */
.rollin-ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #8a2bd6 0%, #6a1ab0 100%);
    flex-shrink: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.rollin-ai-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(1,250,213,0.25), transparent 60%),
        radial-gradient(80% 60% at 0% 100%, rgba(255,255,255,0.10), transparent 60%);
    pointer-events: none;
}
.rollin-ai-header > * { position: relative; z-index: 1; }

.rollin-ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.rollin-ai-avatar img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.rollin-ai-id { flex: 1; min-width: 0; line-height: 1.2; }
.rollin-ai-title {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: -0.01em;
}
.rollin-ai-subtitle {
    font-size: 11.5px;
    color: rgba(255,255,255,0.82);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.rollin-ai-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #19f29c;
    box-shadow: 0 0 8px #19f29c;
    /* animation: rh-pulse-dot 2.2s ease-in-out infinite */ animation: none;
    flex-shrink: 0;
}

.rollin-ai-close {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    color: #fff;
    transition: background 160ms ease, transform 160ms ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rollin-ai-close:hover { background: rgba(255,255,255,0.20); transform: rotate(90deg); }
.rollin-ai-close i { width: 16px; height: 16px; }

/* === Messages list === */
.rollin-ai-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    scroll-behavior: smooth;
}
.rollin-ai-messages::-webkit-scrollbar { width: 6px; }
.rollin-ai-messages::-webkit-scrollbar-thumb {
    background: rgba(138,43,214,0.3);
    border-radius: 3px;
}
.rollin-ai-messages::-webkit-scrollbar-track { background: transparent; }

/* === Bubbles === */
.rollin-ai-message {
    max-width: 88%;
    font-size: 13.5px;
    line-height: 1.5;
    animation: rh-ai-msg-in 280ms cubic-bezier(.2,.7,.2,1) backwards;
}
@keyframes rh-ai-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rollin-ai-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    color: #fff;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 4px 14px rgba(138,43,214,0.32);
}
.rollin-ai-message.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    padding: 10px 14px;
    border-radius: 4px 16px 16px 16px;
    /* backdrop-filter removido pra performance */
}
[data-theme="light"] .rollin-ai-message.bot {
    background: rgba(13,10,31,0.04);
    border-color: rgba(13,10,31,0.08);
    color: rgba(13,10,31,0.85);
}
.rollin-ai-message-text a { color: var(--rh-cyan); text-decoration: underline; }
[data-theme="light"] .rollin-ai-message-text a { color: var(--rh-purple); }

.rollin-ai-message.bot.rollin-ai-welcome {
    max-width: 100%;
    background: linear-gradient(135deg, rgba(138,43,214,0.12), rgba(1,250,213,0.05));
    border-color: rgba(138,43,214,0.28);
}
.rollin-ai-welcome p { margin: 0 0 6px; }
.rollin-ai-welcome p:last-child { margin-bottom: 0; }

/* === Quick replies === */
.rollin-ai-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.rollin-ai-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(138,43,214,0.4);
    color: rgba(255,255,255,0.92);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 160ms ease;
    font-family: inherit;
}
.rollin-ai-quick-btn:hover {
    background: rgba(138,43,214,0.22);
    border-color: rgba(138,43,214,0.7);
    color: #fff;
    transform: translateY(-1px);
}
.rollin-ai-quick-btn i {
    width: 13px; height: 13px;
    color: var(--rh-cyan);
}
[data-theme="light"] .rollin-ai-quick-btn {
    background: rgba(255,255,255,0.85);
    border-color: rgba(106,26,176,0.3);
    color: #2a1a4a;
}
[data-theme="light"] .rollin-ai-quick-btn:hover {
    background: rgba(106,26,176,0.10);
    border-color: rgba(106,26,176,0.5);
    color: #0d0a1f;
}
[data-theme="light"] .rollin-ai-quick-btn i { color: var(--rh-purple); }

/* === Typing dots === */
.rollin-ai-message.rollin-ai-typing {
    padding: 14px 16px;
}
.rollin-ai-typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.rollin-ai-typing-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rh-cyan);
    /* animation: rh-typing 1.2s ease-in-out infinite */ animation: none;
    box-shadow: 0 0 6px var(--rh-cyan);
}
.rollin-ai-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.rollin-ai-typing-dots span:nth-child(3) { animation-delay: 0.30s; }
@keyframes rh-typing {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40%           { opacity: 1;   transform: scale(1.1); }
}
[data-theme="light"] .rollin-ai-typing-dots span {
    background: var(--rh-purple);
    box-shadow: 0 0 6px rgba(106,26,176,0.45);
}

/* === Handoff prompt === */
.rollin-ai-handoff-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-top: 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(1,250,213,0.10), rgba(138,43,214,0.10));
    border: 1px solid rgba(1,250,213,0.3);
    align-self: stretch;
    animation: rh-ai-msg-in 280ms cubic-bezier(.2,.7,.2,1) backwards;
}
.rollin-ai-handoff-prompt > i {
    width: 24px; height: 24px;
    color: var(--rh-cyan);
    flex-shrink: 0;
}
[data-theme="light"] .rollin-ai-handoff-prompt {
    background: linear-gradient(135deg, rgba(106,26,176,0.07), rgba(1,250,213,0.05));
    border-color: rgba(106,26,176,0.3);
}
[data-theme="light"] .rollin-ai-handoff-prompt > i { color: var(--rh-purple); }
.rollin-ai-handoff-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.rollin-ai-handoff-text strong { color: var(--text-primary); font-weight: 700; }

.rollin-ai-handoff-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37,211,102,0.32);
    transition: transform 160ms ease, box-shadow 160ms ease;
    flex-shrink: 0;
    font-family: inherit;
}
.rollin-ai-handoff-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.5);
    color: #fff !important;
    text-decoration: none !important;
}
.rollin-ai-handoff-btn i { width: 14px; height: 14px; }
.rollin-ai-handoff-btn-inline {
    align-self: center;
    margin-top: 4px;
}

/* === Input area === */
.rollin-ai-input-area {
    display: flex;
    gap: 8px;
    padding: 14px 16px 6px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
}
[data-theme="light"] .rollin-ai-input-area {
    background: rgba(13,10,31,0.02);
    border-top-color: rgba(13,10,31,0.06);
}
.rollin-ai-input {
    flex: 1;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 999px !important;
    color: var(--text-primary) !important;
    font-size: 13.5px !important;
    padding: 10px 16px !important;
    font-family: inherit !important;
    outline: none !important;
}
.rollin-ai-input:focus {
    border-color: var(--rh-purple) !important;
    box-shadow: 0 0 0 3px rgba(138,43,214,0.20) !important;
    background: rgba(255,255,255,0.08) !important;
}
.rollin-ai-input:disabled { opacity: 0.5; cursor: not-allowed; }
[data-theme="light"] .rollin-ai-input {
    background: #fff !important;
    border-color: rgba(13,10,31,0.12) !important;
    color: #0d0a1f !important;
}
[data-theme="light"] .rollin-ai-input:focus {
    border-color: var(--rh-purple) !important;
    box-shadow: 0 0 0 3px rgba(106,26,176,0.18) !important;
}

.rollin-ai-send {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2bd6, #6a1ab0);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 4px 14px rgba(138,43,214,0.4);
}
.rollin-ai-send i { width: 16px; height: 16px; }
.rollin-ai-send:hover { transform: scale(1.08) rotate(-8deg); box-shadow: 0 6px 18px rgba(138,43,214,0.55); }
.rollin-ai-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* === Footer info === */
.rollin-ai-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px 12px;
    font-size: 10.5px;
    color: var(--text-dim);
    flex-shrink: 0;
    text-align: center;
}
.rollin-ai-foot i { width: 11px; height: 11px; flex-shrink: 0; }

/* =============================================================
   THEME TOGGLE — animação ao clicar
   ============================================================= */

.rollin-theme-toggle.rh-theme-toggling i { animation: rh-spin 420ms cubic-bezier(.2,.7,.2,1); }
@keyframes rh-spin {
    from { transform: rotate(0deg) scale(0.9); opacity: 0.5; }
    to   { transform: rotate(360deg) scale(1); opacity: 1; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1100px) {
    .rh-hero-grid { grid-template-columns: 1fr; }
    .rh-hero-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .rh-hero { padding: 26px; }
    .rh-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rh-stat { padding: 18px; }
    .rh-stat-num { font-size: 28px; }
    .rh-stat-spark { display: none; }
    #rollin-ai-launcher { bottom: 90px; right: 18px; width: 56px; height: 56px; }
    .rollin-ai-launcher-icon { width: 26px; height: 26px; }
    #rollin-ai-panel {
        top: env(safe-area-inset-top, 8px);
        bottom: 160px;
        left: 8px;
        right: 8px;
        width: auto;
        height: auto;
        max-height: none;
        border-radius: 18px;
    }
    .rollin-ai-message { font-size: 14px; max-width: 92%; }
    .rollin-ai-quick-btn { font-size: 12px; padding: 7px 11px; }
}

@media (max-width: 480px) {
    .rh-hero-stats { grid-template-columns: 1fr 1fr; }
    .rh-hero-cta { width: 100%; }
    .rh-hero-cta .rh-btn { flex: 1; justify-content: center; }
    .rh-section-head { align-items: flex-start; }
}

/* =============================================================
   MODULE CLIENT AREA — DirectAdmin / cPanel / etc.
   Output do módulo do servidor (HTML gerado pelo WHMCS).
   Transforma menu de ações em grid de cards premium.
   ============================================================= */

.module-client-area {
    margin-top: 16px;
}

/* Reset do <center> e Bootstrap rows que o módulo às vezes injeta */
.module-client-area center,
.module-client-area > center { text-align: left; }

.module-client-area p { margin: 0 0 12px; }

/* Headers de seção (h2/h3/h4 — DirectAdmin usa "Business E-mail", "Domain", etc.) */
.module-client-area h1,
.module-client-area h2,
.module-client-area h3,
.module-client-area h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(13, 10, 31, 0.55);
    margin: 28px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(13, 10, 31, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}
.module-client-area h1:first-child,
.module-client-area h2:first-child,
.module-client-area h3:first-child,
.module-client-area h4:first-child { margin-top: 0; }
[data-theme="dark"] .module-client-area h1,
[data-theme="dark"] .module-client-area h2,
[data-theme="dark"] .module-client-area h3,
[data-theme="dark"] .module-client-area h4 {
    color: rgba(255, 255, 255, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.module-client-area h1 i,
.module-client-area h2 i,
.module-client-area h3 i,
.module-client-area h4 i,
.module-client-area h1 svg,
.module-client-area h2 svg,
.module-client-area h3 svg,
.module-client-area h4 svg {
    color: #8a2bd6;
    font-size: 16px;
    width: 16px;
    height: 16px;
}
[data-theme="dark"] .module-client-area h1 i,
[data-theme="dark"] .module-client-area h2 i,
[data-theme="dark"] .module-client-area h3 i,
[data-theme="dark"] .module-client-area h4 i,
[data-theme="dark"] .module-client-area h1 svg,
[data-theme="dark"] .module-client-area h2 svg,
[data-theme="dark"] .module-client-area h3 svg,
[data-theme="dark"] .module-client-area h4 svg { color: #b97aff; }

/* Bootstrap .row dentro do module → vira grid auto-fit responsive */
.module-client-area .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}
.module-client-area .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0;
    float: none;
}

/* Cada link <a> direto vira um card de ação premium */
.module-client-area a:not(.btn):not([role="button"]) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid rgba(13, 10, 31, 0.08);
    border-radius: 12px;
    color: #0d0a1f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 180ms cubic-bezier(.2,.7,.2,1),
                border-color 180ms ease,
                box-shadow 180ms ease,
                background-color 180ms ease;
    box-shadow: 0 1px 2px rgba(13, 10, 31, 0.03);
    line-height: 1.3;
    width: 100%;
    box-sizing: border-box;
}
[data-theme="dark"] .module-client-area a:not(.btn):not([role="button"]) {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: none;
}

.module-client-area a:not(.btn):not([role="button"]):hover {
    transform: translateY(-2px);
    border-color: rgba(138, 43, 214, 0.35);
    box-shadow:
        0 1px 2px rgba(138, 43, 214, 0.06),
        0 8px 22px rgba(138, 43, 214, 0.10);
    text-decoration: none;
    color: #6a1ab0;
}
[data-theme="dark"] .module-client-area a:not(.btn):not([role="button"]):hover {
    border-color: rgba(138, 43, 214, 0.5);
    color: #d8b8ff;
    box-shadow: 0 8px 22px rgba(138, 43, 214, 0.18);
}

/* Ícones (FontAwesome <i> ou <svg>) viram badge à esquerda */
.module-client-area a:not(.btn) > i:first-child,
.module-client-area a:not(.btn) > svg:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(138, 43, 214, 0.10);
    color: #6a1ab0;
    border-radius: 9px;
    font-size: 15px;
    transition: background-color 180ms ease, color 180ms ease;
}
[data-theme="dark"] .module-client-area a:not(.btn) > i:first-child,
[data-theme="dark"] .module-client-area a:not(.btn) > svg:first-child {
    background: rgba(138, 43, 214, 0.18);
    color: #b97aff;
}
.module-client-area a:not(.btn):hover > i:first-child,
.module-client-area a:not(.btn):hover > svg:first-child {
    background: linear-gradient(135deg, #8a2bd6 0%, #6a1ab0 100%);
    color: #ffffff;
}

/* Buttons reais (.btn) dentro do module: aparência clean */
.module-client-area .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 9px 16px;
}

/* Tabelas que o módulo possa renderizar */
.module-client-area table {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(13, 10, 31, 0.08);
}
[data-theme="dark"] .module-client-area table {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.module-client-area table th,
.module-client-area table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(13, 10, 31, 0.06);
    font-size: 14px;
}
[data-theme="dark"] .module-client-area table th,
[data-theme="dark"] .module-client-area table td { border-bottom-color: rgba(255, 255, 255, 0.06); }
.module-client-area table th {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(13, 10, 31, 0.55);
    background: rgba(13, 10, 31, 0.02);
}
[data-theme="dark"] .module-client-area table th {
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.03);
}

/* Mobile: cards um por linha em telas pequenas */
@media (max-width: 480px) {
    .module-client-area .row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .module-client-area a:not(.btn):not([role="button"]) {
        padding: 12px 14px;
    }
}

/* =============================================================
   ROLLIN — Painel de Acesso ao E-mail (productdetails)
   ============================================================= */

.rollin-email-panel {
    margin: 32px 0;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafc 100%);
    border: 1px solid rgba(13, 10, 31, 0.08);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(13, 10, 31, 0.04), 0 1px 3px rgba(13, 10, 31, 0.04);
}
[data-theme="dark"] .rollin-email-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}

.rollin-email-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(13, 10, 31, 0.06);
}
[data-theme="dark"] .rollin-email-panel-head { border-bottom-color: rgba(255,255,255,0.06); }

.rollin-email-panel-head-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8a2bd6 0%, #6a1ab0 100%);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138, 43, 214, 0.28);
}

.rollin-email-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0d0a1f;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
[data-theme="dark"] .rollin-email-panel-title { color: #fff; }

.rollin-email-panel-subtitle {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: rgba(13, 10, 31, 0.6);
    line-height: 1.4;
}
[data-theme="dark"] .rollin-email-panel-subtitle { color: rgba(255, 255, 255, 0.6); }

.rollin-email-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.rollin-email-card {
    background: #fff;
    border: 1px solid rgba(13, 10, 31, 0.08);
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 180ms cubic-bezier(.2,.7,.2,1), border-color 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 1px 2px rgba(13, 10, 31, 0.03);
}
[data-theme="dark"] .rollin-email-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}
.rollin-email-card:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 43, 214, 0.25);
    box-shadow: 0 1px 2px rgba(138, 43, 214, 0.06), 0 8px 22px rgba(138, 43, 214, 0.10);
}
[data-theme="dark"] .rollin-email-card:hover {
    border-color: rgba(138, 43, 214, 0.4);
    box-shadow: 0 8px 22px rgba(138, 43, 214, 0.18);
}

.rollin-email-card-primary {
    border: 1.5px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #8a2bd6 0%, #01fad5 100%) border-box;
}
[data-theme="dark"] .rollin-email-card-primary {
    background:
        linear-gradient(#15002b, #15002b) padding-box,
        linear-gradient(135deg, #8a2bd6 0%, #01fad5 100%) border-box;
}

.rollin-email-card-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 214, 0.10);
    color: #6a1ab0;
    border-radius: 10px;
    flex-shrink: 0;
}
[data-theme="dark"] .rollin-email-card-icon {
    background: rgba(138, 43, 214, 0.20);
    color: #b97aff;
}
.rollin-email-card-primary .rollin-email-card-icon {
    background: linear-gradient(135deg, #8a2bd6 0%, #6a1ab0 100%);
    color: #fff;
}

.rollin-email-card-body { flex: 1; }
.rollin-email-card-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0d0a1f;
}
[data-theme="dark"] .rollin-email-card-body h3 { color: #fff; }
.rollin-email-card-body p {
    margin: 0;
    font-size: 13px;
    color: rgba(13, 10, 31, 0.6);
    line-height: 1.45;
}
[data-theme="dark"] .rollin-email-card-body p { color: rgba(255, 255, 255, 0.6); }

.rollin-email-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #8a2bd6 0%, #6a1ab0 100%);
    color: #fff !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 4px 12px rgba(138, 43, 214, 0.28);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.rollin-email-card-cta:hover {
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(138, 43, 214, 0.40);
}
.rollin-email-card-cta-ghost {
    background: rgba(13, 10, 31, 0.04) !important;
    color: #0d0a1f !important;
    border: 1px solid rgba(13, 10, 31, 0.10) !important;
    box-shadow: none !important;
}
.rollin-email-card-cta-ghost:hover {
    background: rgba(138, 43, 214, 0.08) !important;
    border-color: rgba(138, 43, 214, 0.30) !important;
    color: #6a1ab0 !important;
}
[data-theme="dark"] .rollin-email-card-cta-ghost {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}
[data-theme="dark"] .rollin-email-card-cta-ghost:hover {
    background: rgba(138, 43, 214, 0.18) !important;
    border-color: rgba(138, 43, 214, 0.40) !important;
    color: #d8b8ff !important;
}

.rollin-email-imap-config {
    margin-top: 24px;
    padding: 24px;
    background: rgba(13, 10, 31, 0.02);
    border: 1px solid rgba(13, 10, 31, 0.06);
    border-radius: 14px;
    scroll-margin-top: 100px;
}
[data-theme="dark"] .rollin-email-imap-config {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.rollin-email-imap-title {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 700;
    color: #0d0a1f;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .rollin-email-imap-title { color: #fff; }
.rollin-email-imap-title svg { color: #6a1ab0; }
[data-theme="dark"] .rollin-email-imap-title svg { color: #b97aff; }

.rollin-email-imap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.rollin-email-imap-block {
    background: #fff;
    border: 1px solid rgba(13, 10, 31, 0.08);
    border-radius: 12px;
    padding: 18px;
}
[data-theme="dark"] .rollin-email-imap-block {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.rollin-email-imap-block-head { margin-bottom: 14px; }
.rollin-email-imap-block-head h4 {
    margin: 6px 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #0d0a1f;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .rollin-email-imap-block-head h4 { color: #fff; }
.rollin-email-imap-block-head p {
    margin: 0;
    font-size: 12px;
    color: rgba(13, 10, 31, 0.55);
    line-height: 1.4;
}
[data-theme="dark"] .rollin-email-imap-block-head p { color: rgba(255, 255, 255, 0.55); }

.rollin-email-imap-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rollin-email-imap-badge-incoming {
    background: rgba(138, 43, 214, 0.12);
    color: #6a1ab0;
}
.rollin-email-imap-badge-outgoing {
    background: rgba(1, 250, 213, 0.18);
    color: #006e5e;
}
[data-theme="dark"] .rollin-email-imap-badge-incoming {
    background: rgba(138, 43, 214, 0.22);
    color: #b97aff;
}
[data-theme="dark"] .rollin-email-imap-badge-outgoing {
    background: rgba(1, 250, 213, 0.18);
    color: #01fad5;
}

.rollin-email-imap-recommended {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(25, 163, 102, 0.10);
    color: #0d6e3f;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
[data-theme="dark"] .rollin-email-imap-recommended {
    background: rgba(25, 163, 102, 0.20);
    color: #19f29c;
}

.rollin-email-imap-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}
.rollin-email-imap-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(13, 10, 31, 0.05);
    align-items: start;
}
[data-theme="dark"] .rollin-email-imap-row { border-top-color: rgba(255, 255, 255, 0.05); }
.rollin-email-imap-row:first-child { border-top: none; padding-top: 0; }
.rollin-email-imap-row dt {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(13, 10, 31, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 2px 0 0;
}
[data-theme="dark"] .rollin-email-imap-row dt { color: rgba(255, 255, 255, 0.55); }
.rollin-email-imap-row dd {
    margin: 0;
    font-size: 13.5px;
    color: #0d0a1f;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.45;
}
[data-theme="dark"] .rollin-email-imap-row dd { color: #fff; }

.rollin-email-imap-value {
    background: rgba(138, 43, 214, 0.08);
    color: #6a1ab0;
    padding: 3px 9px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 600;
}
[data-theme="dark"] .rollin-email-imap-value {
    background: rgba(138, 43, 214, 0.20);
    color: #d8b8ff;
}
.rollin-email-imap-value-alt {
    background: rgba(13, 10, 31, 0.05);
    color: rgba(13, 10, 31, 0.7);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 11.5px;
}
[data-theme="dark"] .rollin-email-imap-value-alt {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
}
.rollin-email-imap-tag {
    background: rgba(25, 163, 102, 0.10);
    color: #0d6e3f;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
[data-theme="dark"] .rollin-email-imap-tag {
    background: rgba(25, 163, 102, 0.20);
    color: #19f29c;
}
.rollin-email-imap-tag-alt {
    background: rgba(13, 10, 31, 0.05);
    color: rgba(13, 10, 31, 0.6);
}
[data-theme="dark"] .rollin-email-imap-tag-alt {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}
.rollin-email-imap-alt,
.rollin-email-imap-alt-port {
    font-size: 12px;
    color: rgba(13, 10, 31, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
[data-theme="dark"] .rollin-email-imap-alt,
[data-theme="dark"] .rollin-email-imap-alt-port { color: rgba(255, 255, 255, 0.55); }

.rollin-email-copy {
    background: transparent;
    border: 1px solid rgba(13, 10, 31, 0.10);
    color: rgba(13, 10, 31, 0.55);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
    padding: 0;
}
.rollin-email-copy:hover {
    background: rgba(138, 43, 214, 0.08);
    border-color: rgba(138, 43, 214, 0.35);
    color: #6a1ab0;
}
.rollin-email-copy.rollin-email-copy-ok {
    background: rgba(25, 163, 102, 0.12);
    border-color: rgba(25, 163, 102, 0.35);
    color: #0d6e3f;
}
[data-theme="dark"] .rollin-email-copy {
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.55);
}
[data-theme="dark"] .rollin-email-copy:hover {
    background: rgba(138, 43, 214, 0.20);
    border-color: rgba(138, 43, 214, 0.40);
    color: #d8b8ff;
}

.rollin-email-imap-help {
    margin-top: 18px;
    padding: 14px 18px;
    background: rgba(138, 43, 214, 0.06);
    border: 1px solid rgba(138, 43, 214, 0.18);
    border-radius: 10px;
    font-size: 13px;
    color: rgba(13, 10, 31, 0.75);
    line-height: 1.5;
}
[data-theme="dark"] .rollin-email-imap-help {
    background: rgba(138, 43, 214, 0.12);
    border-color: rgba(138, 43, 214, 0.28);
    color: rgba(255, 255, 255, 0.78);
}
.rollin-email-imap-help strong { color: #0d0a1f; }
[data-theme="dark"] .rollin-email-imap-help strong { color: #fff; }

.rollin-email-imap-tip {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(1, 250, 213, 0.08);
    border: 1px solid rgba(1, 250, 213, 0.22);
    border-radius: 10px;
    font-size: 12.5px;
    color: rgba(13, 10, 31, 0.7);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
[data-theme="dark"] .rollin-email-imap-tip {
    background: rgba(1, 250, 213, 0.10);
    border-color: rgba(1, 250, 213, 0.22);
    color: rgba(255, 255, 255, 0.78);
}
.rollin-email-imap-tip svg {
    color: #00b89e;
    flex-shrink: 0;
    margin-top: 2px;
}
[data-theme="dark"] .rollin-email-imap-tip svg { color: #01fad5; }
.rollin-email-imap-tip code {
    background: rgba(13, 10, 31, 0.05);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11.5px;
}
[data-theme="dark"] .rollin-email-imap-tip code {
    background: rgba(255, 255, 255, 0.08);
}

/* === FIX: dropdown vazio do tabdrop quando tem só 1 tab === */
.nav-tabs-overflow .dropdown:empty,
.nav-tabs-overflow li.dropdown > .dropdown-menu:empty,
.nav-tabs-overflow .dropdown-toggle:empty {
    display: none !important;
}

/* === Mobile === */
@media (max-width: 640px) {
    .rollin-email-panel { padding: 22px 18px; }
    .rollin-email-panel-title { font-size: 16px; }
    .rollin-email-cards { gap: 10px; }
    .rollin-email-card { padding: 18px 16px; }
    .rollin-email-imap-config { padding: 18px 14px; }
    .rollin-email-imap-block { padding: 14px; }
    .rollin-email-imap-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }
    .rollin-email-imap-row dt { font-size: 10.5px; }
}

