/* =========================================================================
   STYLE.CSS - COMPARA PREÇOS (CYBER-GLASSMORPHISM & NEON PREMIUM THEME)
   ========================================================================= */

/* --- VARIÁVEIS DO DESIGN SYSTEM (HSL & NEON) --- */
:root {
    --bg-main: #03050c;          /* Obsidian profundo estilo espaço */
    --bg-sidebar: rgba(10, 12, 28, 0.6); /* Sidebar slate-blue fosca translúcida */
    --text-primary: #f8fafc;     /* Texto principal super claro */
    --text-muted: #94a3b8;       /* Texto secundário/cinza */
    
    /* Cores Neon e Gráficos */
    --color-cyan: #00f0ff;       /* Ciano neon elétrico */
    --color-blue: #3b82f6;       /* Azul cobalto premium */
    --color-purple: #a855f7;     /* Violeta elétrico */
    --color-green: #10b981;      /* Verde esmeralda para descontos */
    --color-red: #f43f5e;        /* Vermelho vibrante */
    
    /* Efeitos de Vidro (Glassmorphism) */
    --glass-bg: rgba(13, 18, 38, 0.45);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-glow: rgba(0, 240, 255, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Tipografia */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    /* Auroras cósmicas de fundo */
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
        radial-gradient(at 80% 10%, rgba(0, 240, 255, 0.08) 0px, transparent 40%);
    background-attachment: fixed;
}

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

/* --- CONTAINER PRINCIPAL --- */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* --- SIDEBAR DE NAVEGAÇÃO (CÁPSULA DE VIDRO FLUTUANTE) --- */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    padding: 35px 20px;
    position: fixed;
    height: calc(100vh - 40px);
    z-index: 10;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.6);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 45px;
    padding-left: 10px;
}

.logo-icon {
    font-size: 26px;
    color: var(--color-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
    animation: pulse 2.5s infinite ease-in-out;
}

.logo-image {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.sidebar-logo h2 {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-logo h2 span {
    color: var(--color-cyan);
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
    position: relative;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.sidebar-nav li.active a,
.sidebar-nav a:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 
        inset 0 0 12px rgba(255, 255, 255, 0.02),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.sidebar-nav li.active a i {
    color: var(--color-cyan);
    filter: drop-shadow(0 0 8px var(--color-cyan));
}

/* Indicador lateral neon ativo */
.sidebar-nav li.active::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 25%;
    height: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-cyan), var(--color-blue));
    border-radius: 10px;
    filter: drop-shadow(0 0 5px var(--color-cyan));
}

/* --- CONTEÚDO PRINCIPAL (MAIN CONTENT) --- */
.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 40px 40px 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 4px 6px;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-input-wrapper:focus-within {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

.search-icon {
    position: absolute;
    left: 22px;
    color: var(--text-muted);
    font-size: 16px;
}

.search-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 14px 12px 14px 52px;
    font-size: 15px;
    font-family: var(--font-body);
}

.btn-search-header {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    color: #fff;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-search-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.45);
}

/* --- GLASS CARD GENERICS --- */
.glass-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.5);
}

/* --- BEM-VINDO CARD --- */
.welcome-container {
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 800px;
    line-height: 1.7;
}

/* --- BUSCA GRANDE CENTRALIZADA (HERO) --- */
.hero-search-container {
    margin-bottom: 50px;
}

.search-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.search-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.search-input-wrapper-hero {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(2, 4, 10, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 6px;
    transition: var(--transition-smooth);
}

.search-input-wrapper-hero:focus-within {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.search-icon-hero {
    position: absolute;
    left: 28px;
    color: var(--color-cyan);
    font-size: 22px;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

.search-input-wrapper-hero input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 18px 20px 18px 72px;
    font-size: 17px;
    font-family: var(--font-body);
}

.btn-search-hero {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 50%, var(--color-purple) 100%);
    color: #fff;
    border: none;
    outline: none;
    border-radius: 16px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-search-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.55);
}

/* --- SEÇÃO DOS MONITORADOS --- */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-icon {
    color: var(--color-cyan);
    filter: drop-shadow(0 0 6px var(--color-cyan));
}

.badge-total {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(59, 130, 246, 0.1));
    color: var(--color-cyan);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* --- GRID DE CARDS MONITORADOS --- */
.monitorados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.monitor-card {
    position: relative;
    padding: 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.monitor-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.1);
}

.monitor-img-wrapper {
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.monitor-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
    transition: var(--transition-smooth);
}

.monitor-card:hover .monitor-img-wrapper img {
    transform: scale(1.05);
}

.monitor-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.monitor-card:hover .monitor-info h3 {
    color: var(--color-cyan);
}

.price-comparison-widget {
    background-color: rgba(2, 4, 10, 0.3);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.price-widget-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 16px;
    font-weight: 800;
}

.target-val {
    color: var(--text-primary);
}

.current-val {
    color: var(--color-cyan);
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.3));
}

.discount-alert {
    color: var(--color-green);
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
    animation: flash-green 1.5s infinite;
}

.monitor-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-action-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.45);
}

.btn-action-danger {
    background-color: rgba(244, 63, 94, 0.06);
    color: var(--color-red);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action-danger:hover {
    background-color: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

/* --- BADGES DAS LOJAS --- */
.store-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    z-index: 2;
    border: 1px solid transparent;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge-kabum {
    background-color: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.badge-pichau {
    background-color: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.25);
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.1);
}

.badge-terabyte {
    background-color: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.badge-amazon {
    background-color: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
}

.badge-mercado-livre {
    background-color: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.25);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.1);
}

/* --- TELA DE RESULTADOS --- */
.results-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.results-header h1,
.results-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.results-header h1 span,
.results-header h2 span {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.result-card {
    position: relative;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.1);
}

.result-img-wrapper {
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.result-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.result-card:hover .result-img-wrapper img {
    transform: scale(1.05);
}

.result-info h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 16px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.result-card:hover .result-info h3 {
    color: var(--color-cyan);
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.price-box .price-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.25));
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-action-outline {
    flex: 1;
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition-smooth);
}

.btn-action-outline:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

/* --- TELA VAZIA --- */
.empty-card {
    text-align: center;
    padding: 60px 40px;
}

.empty-icon-wrapper {
    font-size: 52px;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 10px;
}

.empty-card p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

/* --- MODAL (GLASSMORPHISM) --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 4, 10, 0.6);
    backdrop-filter: blur(12px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 35px;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
    animation: modal-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-modal {
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--color-red);
}

.modal-product-summary {
    display: flex;
    gap: 16px;
    align-items: center;
    background-color: rgba(2, 4, 10, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.modal-product-summary img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.modal-product-summary div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.modal-product-summary h4 {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.modal-product-summary .store-badge {
    position: relative;
    top: 0;
    left: 0;
    align-self: flex-start;
}

.price-indicator-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 6px;
}

.price-indicator-modal .price-value {
    color: var(--color-cyan);
    font-size: 22px;
    font-weight: 800;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.3));
}

.input-group-modal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.input-group-modal label {
    font-size: 14px;
    font-weight: 700;
}

.input-helper {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.target-input-wrapper {
    display: flex;
    align-items: center;
    background-color: rgba(2, 4, 10, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0 16px;
    transition: var(--transition-smooth);
}

.target-input-wrapper:focus-within {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.currency-prefix {
    font-weight: 800;
    color: var(--text-muted);
    margin-right: 8px;
}

.target-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-action-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-action-secondary:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.modal-error {
    background-color: rgba(244, 63, 94, 0.08);
    color: var(--color-red);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 12px;
    padding: 14px;
    font-size: 13px;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* =========================================================================
   NOVAS CLASSES - FILTROS AVANÇADOS, DETALHES DE PRODUTO & RODAPÉ
   ========================================================================= */

/* --- PAINEL DE CONTROLE DE FILTROS (RESULTS PAGE) --- */
.filters-panel {
    margin-bottom: 35px;
    padding: 24px 28px;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs de preço elegantes */
.price-inputs-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(2, 4, 10, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0 14px;
    flex: 1;
    transition: var(--transition-smooth);
}

.price-input-box:focus-within {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.price-input-box span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 6px;
}

.price-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 12px 0;
    font-size: 14.5px;
    font-weight: 700;
    font-family: var(--font-body);
}

/* Pílulas de Loja Interativas */
.store-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-pill {
    background-color: rgba(2, 4, 10, 0.25);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.store-pill:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Estados ativos das pílulas */
.store-pill.active.badge-kabum {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.store-pill.active.badge-pichau {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(244, 63, 94, 0.05) 100%);
    color: #f43f5e;
    border-color: #f43f5e;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.25);
}

.store-pill.active.badge-terabyte {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.store-pill.active.badge-amazon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.store-pill.active.badge-mercado-livre {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
    color: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
}

/* Dropdown customizado de ordenação */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(2, 4, 10, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 0 14px;
    transition: var(--transition-smooth);
}

.select-wrapper:focus-within {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.select-wrapper i {
    color: var(--color-cyan);
    margin-right: 10px;
    font-size: 14px;
}

.custom-select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 12px 20px 12px 0;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    appearance: none;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 14px;
}

/* --- DETALHES DE PRODUTO UPGRADE --- */
.product-details-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-profile-card {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    padding: 40px;
    overflow: hidden;
}

.product-profile-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.product-profile-img {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.product-profile-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
}

.product-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.product-profile-info h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 50%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-profile-info .store-badge {
    position: relative;
    top: 0;
    right: 0;
    align-self: flex-start;
}

.product-link-row {
    font-size: 14.5px;
    color: var(--text-muted);
}

.product-link-row a {
    color: var(--color-cyan);
    font-weight: 700;
}

.product-link-row a:hover {
    color: var(--text-primary);
    text-decoration: none;
    filter: drop-shadow(0 0 4px var(--color-cyan));
}

.action-buttons-profile {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

/* Botão oficial de Compra Direta */
.btn-action-checkout {
    background: linear-gradient(135deg, var(--color-green) 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 15px 35px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    animation: pulse-green 3s infinite ease-in-out;
}

.btn-action-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-action-danger-large {
    background-color: rgba(244, 63, 94, 0.05);
    color: var(--color-red);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 14px;
    padding: 15px 28px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action-danger-large:hover {
    background-color: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35);
}

/* Gráfico aprimorado */
.chart-card {
    padding: 35px;
}

.chart-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 30px;
}

.chart-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
}

/* Widgets e badges analíticos */
.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.savings-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%);
    position: relative;
    overflow: hidden;
}

.savings-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-cyan), var(--color-blue));
}

.savings-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(59, 130, 246, 0.1));
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--color-cyan);
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.3));
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.savings-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.savings-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-green);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.savings-pct {
    font-size: 13.5px;
    color: var(--text-muted);
}

.savings-pct b {
    color: var(--text-primary);
}

.opportunity-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.opportunity-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.opportunity-badge {
    font-size: 16px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.opp-excellent {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    border: 1px solid var(--color-green);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.25));
}

.opp-regular {
    background-color: rgba(0, 240, 255, 0.15);
    color: var(--color-cyan);
    border: 1px solid var(--color-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.25));
}

.opp-high {
    background-color: rgba(244, 63, 94, 0.15);
    color: var(--color-red);
    border: 1px solid var(--color-red);
    filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.25));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.stat-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 32px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
}

/* --- RODAPÉ GLOBAL PREMIUM --- */
.main-footer {
    background-color: rgba(8, 10, 22, 0.4);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 40px 50px;
    margin-top: 60px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(to right, var(--color-cyan), var(--color-blue));
    border-radius: 10px;
}

.footer-col p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
}

.footer-logo-image {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

.footer-logo span {
    color: var(--color-cyan);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-cyan);
    padding-left: 5px;
}

.disclaimer-card {
    background-color: rgba(2, 4, 10, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background-color: rgba(2, 4, 10, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-btn:hover {
    color: var(--color-cyan);
    border-color: var(--color-cyan);
    background-color: rgba(0, 240, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 25px;
    font-size: 13px;
    color: rgba(148, 163, 184, 0.4);
}

/* --- CLASSES DE ANIMAÇÃO FRONTEND (GRID FILTERING) --- */
.results-grid .result-card {
    transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s ease allow-discrete;
}

.fade-out-scale {
    opacity: 0 !important;
    transform: scale(0.8) translateY(10px) !important;
}

.fade-in-scale {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}

/* --- ANIMAÇÕES KEYFRAMES --- */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
        filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.8));
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    }
    50% {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
    }
}

@keyframes flash-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
}

@keyframes modal-enter {
    from {
        transform: scale(0.92) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* --- AJUSTES RESPONSIVOS --- */
@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    .filter-group:nth-child(2) {
        grid-column: span 2;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 35px 10px;
        margin: 10px;
        height: calc(100vh - 20px);
    }
    
    .sidebar-logo h2,
    .sidebar-nav a span,
    .sidebar-nav li::before {
        display: none !important;
    }
    
    .sidebar-logo {
        justify-content: center;
        margin-bottom: 40px;
        padding-left: 0;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 14px;
    }
    
    .main-content {
        margin-left: 110px;
        padding: 30px 30px 30px 10px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: calc(100% - 20px);
        height: auto;
        position: relative;
        margin: 10px;
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .sidebar-logo {
        margin-bottom: 0;
    }
    
    .sidebar-nav ul {
        display: flex;
        gap: 10px;
    }
    
    .sidebar-nav a {
        padding: 10px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .main-header {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    
    .product-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .product-profile-info .store-badge {
        align-self: center;
    }
    
    .action-buttons-profile {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group:nth-child(2) {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
