:root {
    --primary: #0082c9;
    --primary-light: #00a1fc;
    --primary-dark: #005a8c;
    --primary-glow: rgba(0, 161, 252, 0.25);
    
    --accent: #25D366;
    --accent-dark: #128C7E;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.96);
    --bg-dock: rgba(255, 255, 255, 0.94);
    --bg-subtle: #f1f5f9;
    --bg-dark-card: #0b132b;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: rgba(0, 0, 0, 0.05);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    --shadow-dock: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
    
    --header-height: 56px;
    --dock-height: 58px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    :root {
        --header-height: 64px;
        --dock-height: 64px;
        --radius-sm: 8px;
        --radius-md: 14px;
        --radius-lg: 20px;
        --radius-xl: 26px;
    }
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

/* App Shell Layout (Full Width Desktop & Responsive Mobile) */
.app-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--bg-main);
    padding-bottom: 95px; /* Altura ideal de respiro para a dock no mobile */
}

@media (min-width: 768px) {
    .app-container {
        padding-bottom: 120px;
    }
}

/* ══════════════════════════════════════════════════
   HEADER (Top App Bar Full Width)
   ══════════════════════════════════════════════════ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    width: 100%;
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 8px;
}

@media (min-width: 768px) {
    .header-content {
        padding: 0 36px;
        gap: 12px;
    }
}

@media (min-width: 1200px) {
    .header-content {
        padding: 0 48px;
    }
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .brand-logo {
        height: 34px;
    }
    .brand-wrapper {
        gap: 12px;
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.1);
    color: #15803d;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(37, 211, 102, 0.2);
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-header-wa {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.25);
    white-space: nowrap;
}

.btn-header-wa:hover {
    background: #20bd5a;
    transform: translateY(-1px);
}

.btn-partner {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: #fff;
    white-space: nowrap;
}

.btn-partner:hover {
    color: var(--primary);
    border-color: var(--primary-light);
}

/* Header Ajustes Mobile */
@media (max-width: 580px) {
    .status-badge span.status-text {
        display: none;
    }
    .status-badge {
        padding: 4px 6px;
    }
    .btn-partner {
        padding: 7px 9px;
    }
    .btn-partner span.partner-text {
        display: none;
    }
    .btn-header-wa {
        padding: 7px 11px;
    }
}

/* ══════════════════════════════════════════════════
   MAIN VIEWPORT & TAB PAGES (Full Width Spacing)
   ══════════════════════════════════════════════════ */
.main-viewport {
    flex: 1;
    position: relative;
    padding: 12px 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .main-viewport {
        padding: 24px 36px;
    }
}

@media (min-width: 1200px) {
    .main-viewport {
        padding: 32px 48px;
    }
}

.tab-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInView 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════
   BOTTOM DOCK BAR (Design Refinado Mobile Ergonomic)
   ══════════════════════════════════════════════════ */
.bottom-dock {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 480px;
    height: var(--dock-height);
    background: var(--bg-dock);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-dock), 0 0 0 1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 2px;
}

@media (min-width: 768px) {
    .bottom-dock {
        bottom: 14px;
        width: calc(100% - 24px);
        max-width: 520px;
        padding: 0 4px;
    }
}

.dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 600;
    gap: 2px;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
}

.dock-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.dock-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
}

@media (min-width: 768px) {
    .dock-item {
        font-size: 0.65rem;
        gap: 3px;
    }
    .dock-icon {
        width: 22px;
        height: 22px;
    }
    .dock-icon svg {
        width: 20px;
        height: 20px;
    }
}

.dock-label {
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.dock-item:hover {
    color: var(--primary);
}

.dock-item.active {
    color: var(--primary);
    font-weight: 800;
}

.dock-item.active .dock-icon {
    transform: translateY(-2px);
    color: var(--primary-light);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 14px;
    height: 3px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    box-shadow: 0 1px 6px var(--primary-light);
}

/* ══════════════════════════════════════════════════
   SIMULATOR LAYOUT GRID (2 Colunas Desktop / 1 Mobile)
   ══════════════════════════════════════════════════ */
.simulator-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 860px) {
    .simulator-layout-grid {
        display: grid;
        grid-template-columns: 1.15fr 0.95fr;
        gap: 24px;
        align-items: start;
    }
}

.simulator-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 16px 14px;
}

@media (min-width: 768px) {
    .simulator-box {
        padding: 22px;
    }
}

.simulator-results-sticky {
    position: relative;
}

@media (min-width: 860px) {
    .simulator-results-sticky {
        position: sticky;
        top: 80px;
    }
}

/* Tipo de Consórcio Selector */
.type-toggle-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .type-toggle-group {
        gap: 8px;
        margin-bottom: 22px;
    }
}

.type-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 0.725rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .type-toggle-btn {
        padding: 12px 6px;
        font-size: 0.8rem;
        gap: 4px;
    }
}

.type-toggle-btn.active {
    background: rgba(0, 161, 252, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 161, 252, 0.15);
}

.sim-input-group {
    margin-bottom: 20px;
}

.sim-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sim-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.sim-val-display {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0, 161, 252, 0.08);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* Range Sliders Refinados */
.sim-slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin: 8px 0;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px var(--primary-glow);
    border: 3px solid #fff;
    transition: transform 0.15s ease;
}

.sim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.sim-toggle-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-subtle);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
}

/* Quick Credit Buttons */
.quick-credit-pills {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-credit-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--text-muted);
}

.quick-credit-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--primary);
}

input:checked + .slider-toggle:before {
    transform: translateX(20px);
}

/* Simulation Results Card (High-End Dark Card) */
.sim-results-card {
    background: linear-gradient(145deg, #0b132b 0%, #1c2541 100%);
    border-radius: var(--radius-xl);
    color: #fff;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-results-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 161, 252, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.sim-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.15);
    color: #4ade80;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(37, 211, 102, 0.25);
    margin-bottom: 12px;
}

.sim-main-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.sim-sub-value {
    font-size: 0.825rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.sim-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-metric-item {
    display: flex;
    flex-direction: column;
}

.sim-metric-label {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.sim-metric-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

/* ══════════════════════════════════════════════════
   CARDS, UI HELPERS & TYPOGRAPHY
   ══════════════════════════════════════════════════ */
.section-title-wrap {
    margin-bottom: 20px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.section-heading {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.section-subheading {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 161, 252, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 161, 252, 0.4);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════
   CAROUSEL (Home Screen)
   ══════════════════════════════════════════════════ */
.carousel-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    padding: 28px 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    box-sizing: border-box;
}

.slide-bg-1 {
    background: linear-gradient(135deg, #0b2545 0%, #134074 50%, #0082c9 100%);
}

.slide-bg-2 {
    background: linear-gradient(135deg, #1e293b 0%, #0f766e 100%);
}

.slide-bg-3 {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
}

.slide-bg-4 {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.slide-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 16px;
    max-width: 90%;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.carousel-dot.active {
    width: 20px;
    border-radius: var(--radius-full);
    background: #ffffff;
}

/* ══════════════════════════════════════════════════
   QUICK APP ACTIONS / SHORTCUTS (Grid)
   ══════════════════════════════════════════════════ */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.quick-action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    color: var(--primary);
    font-size: 1.2rem;
}

.quick-action-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

/* ══════════════════════════════════════════════════
   PRODUCT CARDS & GRIDS
   ══════════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .carousel-slide {
        min-height: 260px;
        padding: 36px 32px;
    }
    .slide-title {
        font-size: 1.65rem;
    }
    .slide-desc {
        font-size: 0.95rem;
    }
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.product-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(0, 161, 252, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.product-category-tag {
    font-size: 0.685rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--bg-subtle);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.product-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.45;
}

.product-features {
    list-style: none;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-features li {
    font-size: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Category Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.chip-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.chip-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ══════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ══════════════════════════════════════════════════
   BENEFITS & CONSULTING DIFFERENTIALS
   ══════════════════════════════════════════════════ */
.differentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .differentials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.diff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.diff-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(0, 161, 252, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.diff-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.diff-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════
   IN-APP TRANSITION PORTAL (Solução Inteligente de Contratação)
   ══════════════════════════════════════════════════ */
.embed-view {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 30px auto;
}

.embed-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    gap: 12px;
}

.btn-embed-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-subtle);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-embed-back:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.embed-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    flex: 1;
}

.embed-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 2px;
}

.embed-page-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* In-App Portal Card Refinado */
.inapp-portal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .inapp-portal-card {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }
}

.inapp-portal-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 161, 252, 0.12), rgba(0, 130, 201, 0.06));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px var(--primary-glow);
    border: 1px solid rgba(0, 161, 252, 0.2);
}

.inapp-portal-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
    line-height: 1.25;
}

.inapp-portal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 22px;
    line-height: 1.45;
}

/* Benefits Grid */
.inapp-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 24px;
    text-align: left;
    border: 1px solid var(--border-color);
}

@media (min-width: 600px) {
    .inapp-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 18px;
    }
}

.inapp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.825rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.35;
}

.inapp-benefit-item svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Actions */
.inapp-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto 20px;
}

.btn-proceed-porto {
    background: linear-gradient(135deg, #0082c9 0%, #00a1fc 100%);
    color: #ffffff;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 161, 252, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-proceed-porto:hover {
    box-shadow: 0 8px 26px rgba(0, 161, 252, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.inapp-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.785rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.4;
}

.inapp-trust-footer svg {
    flex-shrink: 0;
    color: #10b981;
}

/* Embed Frame & Loader */
.embed-frame-wrapper {
    position: relative;
    width: 100%;
    min-height: 720px;
    height: calc(100vh - 210px);
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
}

#embedIframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #ffffff;
}

.embed-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 10;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.embed-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.embed-spinner {
    width: 42px;
    height: 42px;
    border: 3.5px solid rgba(0, 161, 252, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-embed-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-embed-action:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}


