/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Blur overlay and waitlist popup styles */
.dashboard-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
}

.dashboard-blur-overlay.active {
    display: block;
}

.waitlist-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    z-index: 1000;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: none;
    text-align: center;
}

.waitlist-popup.active {
    display: block;
    animation: popupFadeIn 0.5s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-header {
    margin-bottom: 20px;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.popup-company {
    font-size: 18px;
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 15px;
}

.popup-message {
    font-size: 16px;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-form {
    margin-bottom: 20px;
}

.popup-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.popup-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.popup-input::placeholder {
    color: #666;
}

.popup-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0f;
    background-image: 
        radial-gradient(ellipse at top left, rgba(120, 50, 180, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(220, 50, 130, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(50, 120, 220, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

/* Ensure all sections have proper stacking */
section {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav {
    padding: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-by {
    font-size: 0.75rem;
    color: white;
    font-weight: 400;
    margin-left: 8px;
    margin-right: 0;
    line-height: 1;
}

.logo-link {
    display: flex;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin: 0;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 16px;
    width: auto;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


.nav-cta {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.mobile-menu-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #ffffff;
}


.mobile-nav-cta {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    width: 100%;
}

.mobile-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Adjust body padding for fixed header */
body {
    padding-top: 80px;
}

/* Privacy Policy Styles */
.privacy-policy-section {
    min-height: calc(100vh - 160px);
    padding: 60px 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
}

.privacy-content h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.policy-content h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.policy-content h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 30px 0 15px 0;
}

.policy-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.policy-content ul {
    color: rgba(255, 255, 255, 0.8);
    margin: 15px 0 20px 0;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.policy-content strong {
    color: white;
    font-weight: 600;
}

.policy-content a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: #ec4899;
    text-decoration: underline;
}

/* Responsive adjustments for privacy policy */
@media (max-width: 768px) {
    .privacy-content {
        margin: 0 20px;
        padding: 30px 25px;
    }
    
    .privacy-content h1 {
        font-size: 2rem;
    }
    
    .policy-content h2 {
        font-size: 1.3rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #9333ea 0%, #f472b6 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 31px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Search Section */
.search-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: 
        radial-gradient(ellipse at 50% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    padding: 80px 0 60px 0;
}

/* AI Engines Showcase */
.ai-engines-showcase {
    margin-bottom: 30px;
    text-align: center;
}

.engines-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.engine-logo-item {
    position: relative;
    padding: 16px;
    background: transparent;
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: floatEngine 6s ease-in-out infinite;
}

.engine-logo-item:nth-child(1) { animation-delay: 0s; }
.engine-logo-item:nth-child(2) { animation-delay: 1.2s; }
.engine-logo-item:nth-child(3) { animation-delay: 2.4s; }
.engine-logo-item:nth-child(4) { animation-delay: 3.6s; }
.engine-logo-item:nth-child(5) { animation-delay: 4.8s; }

.engine-logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: transparent;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.engine-showcase-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.engine-logo-item:hover .engine-showcase-logo {
    filter: brightness(1.2);
}

@keyframes floatEngine {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-4px) rotate(0deg); }
    75% { transform: translateY(-12px) rotate(-1deg); }
}

/* Dashboard Placeholder */
.dashboard-placeholder {
    padding: 40px 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.placeholder-message {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    backdrop-filter: blur(10px);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.placeholder-message h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.placeholder-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .engines-grid {
        gap: 12px;
    }
    
    .engine-logo-item {
        padding: 12px;
    }
    
    .engine-showcase-logo {
        width: 60px;
        height: 60px;
    }
    
    .ai-engines-showcase {
        margin-bottom: 30px;
    }
    
    .dashboard-placeholder {
        padding: 30px 15px;
    }
    
    .placeholder-message {
        padding: 30px 15px;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
    }
    
    .placeholder-message h3 {
        font-size: 1.1rem;
    }
    
    .placeholder-message p {
        font-size: 0.9rem;
    }
}

.search-content {
    max-width: 900px;
    margin: 0 auto;
}

.search-section h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.search-section .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-section .hero-value {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    margin-bottom: 3rem;
}

.search-input-container {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    gap: 12px;
    align-items: stretch;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group:first-child {
    flex: 0 0 30%;
}

.input-group:nth-child(2) {
    flex: 1;
}

.input-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding-left: 4px;
}

.input-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.input-group input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: flex-end;
    height: 48px;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* Search Results */
.search-results {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out;
    text-align: left;
}

.search-results.hidden {
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.results-disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-block;
}

.results-disclaimer small {
    color: #fbbf24;
    font-weight: 500;
}

.ai-engines-results {
    display: grid;
    gap: 20px;
    margin-bottom: 3rem;
}

.engine-result {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.engine-result:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.engine-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.engine-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.engine-info {
    flex: 1;
}

.engine-info h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.visibility-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visibility-score .score {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.visibility-score .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.visibility-score.good .score {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.visibility-score.medium .score {
    background: rgba(255, 193, 7, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.visibility-score.low .score {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.engine-details {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.engine-details p {
    margin-bottom: 8px;
}

.sample-queries small {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.results-cta {
    text-align: center;
    padding: 30px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
}

.results-cta p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(ellipse at 20% 10%, rgba(139, 92, 246, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(236, 72, 153, 0.15) 0%, transparent 60%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.hero-value {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

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

/* Dashboard Mockup */
.dashboard-mockup {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(20px);
    position: relative;
}

.dashboard-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-logo {
    font-weight: 700;
    color: #8b5cf6;
    font-size: 1.1rem;
}

.mockup-tabs {
    display: flex;
    gap: 8px;
}

.mockup-tabs span {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.mockup-tabs span.active {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

.mockup-content {
    padding: 30px;
}

.metric-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.metric-card h4 {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-trend {
    font-size: 0.9rem;
    color: #10b981;
}

.ai-engines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.engine {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Problem Section */
.problem {
    padding: 120px 0;
}

.problem h2 {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.problem-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.problem-point {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.problem-point:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.problem-point .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: grayscale(0.2);
}

.problem-point h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.problem-point p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.problem-conclusion {
    text-align: center;
    font-size: 1.3rem;
    padding: 40px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    color: #ffffff;
    backdrop-filter: blur(20px);
    max-width: 800px;
    margin: 0 auto;
}

/* Dashboards Section */
.dashboards {
    padding: 120px 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    /* TODO: Réactiver la section dashboards quand nécessaire */
    display: none;
}

#dashboard-content {
    position: relative;
}

.dashboard-placeholder {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 40px 0;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dashboard-placeholder h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.dashboard-placeholder p {
    font-size: 16px;
    color: #a0a0a0;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.dashboards h2 {
    background: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

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

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-icon {
    font-size: 1.4rem;
}

.dashboard-title h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.dashboard-period, .market-share {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-content {
    padding: 0 24px 24px 24px;
}

/* Dashboard 1: Overview Styles */
.overview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.engines-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.engine-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.engine-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    min-width: 80px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.progress-fill.chatgpt {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.progress-fill.perplexity {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.progress-fill.bing {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.engine-value {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

/* Dashboard 2: Engines Comparison */
.dashboard-filter {
    position: relative;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    outline: none;
}

.engines-comparison {
    display: grid;
    gap: 16px;
}

.engine-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.engine-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.engine-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.engine-logo {
    font-size: 1.2rem;
}

.engine-title {
    font-weight: 600;
    color: #ffffff;
}

.engine-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.metric {
    text-align: center;
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.engine-trend {
    height: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.trend-line {
    height: 100%;
    width: 100%;
    position: relative;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.3) 50%, transparent 100%);
}

/* Dashboard 3: Timeline */
.dashboard-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.tab {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

.timeline-chart {
    margin-bottom: 20px;
}

.chart-area {
    height: 120px;
    margin-bottom: 8px;
    position: relative;
}

.timeline-svg {
    width: 100%;
    height: 100%;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.timeline-insights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.insight-icon {
    font-size: 1rem;
}

/* Dashboard 4: Competition */
.competitors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.competitor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.competitor-item.you {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.competitor-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.competitor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.competitor-initial {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.competitor-details {
    display: flex;
    flex-direction: column;
}

.competitor-name {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

.competitor-score {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.competitor-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 12px;
}

.competitor-progress {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.you-progress {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.comp-progress {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.competitor-rank {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.opportunities {
    display: flex;
    justify-content: center;
}

.opportunity-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #10b981;
}

.opportunity-icon {
    font-size: 0.9rem;
}

/* Why Now Section */
.why-now {
    padding: 120px 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.why-now h2 {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.stat {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.stat-highlight {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Why Looptra Section */
.why-looptra {
    padding: 120px 0;
}

.why-looptra .section-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.advantage {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.advantage:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.advantage h3 {
    margin-bottom: 15px;
}

.advantage p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    padding: 80px 0;
}

.final-cta h2 {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.cta-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    align-items: center;
}

.cta-form input[type="email"] {
    width: 300px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.cta-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.secondary-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.secondary-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    text-align: center;
    backdrop-filter: blur(20px);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================
   ADVANCED DASHBOARD STYLES
   ========================================== */

/* KPI Header */
.kpi-header {
    margin-bottom: 40px;
}

.main-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.kpi-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.kpi-card.primary {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

/* Gauge Visualization */
.kpi-gauge {
    text-align: center;
    margin-bottom: 30px;
}

.gauge-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.gauge-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        rgba(255, 255, 255, 0.1) 0deg,
        rgba(255, 255, 255, 0.05) 360deg
    );
}

.gauge-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #8b5cf6 0deg,
        #ec4899 calc(var(--percentage) * 3.6deg),
        transparent calc(var(--percentage) * 3.6deg)
    );
    mask: radial-gradient(circle at center, transparent 60%, black 61%);
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.kpi-sublabel {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Engine Breakdown */
.engine-breakdown {
    flex: 1;
}

.engine-mini-kpi {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.engine-mini-kpi:last-child {
    border-bottom: none;
}

.engine-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-metrics {
    flex: 1;
}

.engine-name {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.mini-metrics {
    display: flex;
    gap: 15px;
}

.mini-metric {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.engine-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.engine-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--score);
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

/* Dashboard Views */
.dashboard-views {
    min-height: 600px;
}

.dashboard-view {
    display: none;
}

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

.view-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.view-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-controls select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.9rem;
}

.view-controls select option {
    background: #2d2d2d;
    color: white;
}

/* Heatmap Styles */
.heatmap-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(20px);
    text-align: center;
}

.heatmap-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.rank-1-3 { background: #10b981; }
.legend-color.rank-4-5 { background: #f59e0b; }
.legend-color.rank-6-plus { background: #ef4444; }
.legend-color.not-cited { background: #6b7280; }

.heatmap-grid {
    display: grid;
    gap: 2px;
    overflow-x: auto;
    justify-content: center;
    margin: 0 auto;
    width: fit-content;
}

.heatmap-header {
    display: grid;
    grid-template-columns: 200px repeat(5, 120px);
    gap: 2px;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.query-label {
    padding: 12px;
    text-align: left;
}

.engine-header {
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.heatmap-row {
    display: grid;
    grid-template-columns: 200px repeat(5, 120px);
    gap: 2px;
    margin-bottom: 2px;
}

.query-cell {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.heatmap-cell {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.heatmap-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

.heatmap-cell.rank-1-3 { background: rgba(16, 185, 129, 0.3); color: #10b981; }
.heatmap-cell.rank-4-5 { background: rgba(245, 158, 11, 0.3); color: #f59e0b; }
.heatmap-cell.rank-6-plus { background: rgba(239, 68, 68, 0.3); color: #ef4444; }
.heatmap-cell.not-cited { background: rgba(107, 114, 128, 0.3); color: #6b7280; }

.rank-number {
    font-size: 1rem;
    font-weight: 700;
}

.type-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 1px 4px;
    font-weight: 500;
}

/* Wins & Gaps Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.count-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.wins-gaps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .wins-gaps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Comparison Charts Styles */
.comparison-bars-chart {
    margin: 20px 0;
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-comparison-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-comparison-row:last-child {
    border-bottom: none;
}

.brand-label {
    min-width: 120px;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comparison-metrics {
    display: flex;
    gap: 30px;
    flex: 1;
}

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

.metric-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.metric-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-bar-bg {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-bar-fill {
    height: 100%;
    transition: width 1s ease;
    border-radius: 12px;
    min-width: 4px;
    display: block;
}

.metric-bar-fill.coverage {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.metric-bar-fill.sov {
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.metric-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    min-width: 45px;
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .brand-comparison-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .brand-label {
        min-width: auto;
        text-align: center;
    }
    
    .comparison-metrics {
        gap: 20px;
    }
    
    .metric-bar-container {
        gap: 8px;
    }
}

.wins-section, .gaps-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(20px);
}

.wins-section h4, .gaps-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.wins-list, .gaps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.win-item, .gap-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.win-item:hover, .gap-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.win-query, .gap-query {
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.win-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
}

.btn-evidence {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-evidence:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.win-details {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 6px;
}

.win-engine, .win-rank, .win-type {
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.win-engine {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.win-rank {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.win-type {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.win-source {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.gap-engines {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gap-engine {
    font-size: 0.8rem;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 4px;
}

.gap-impact {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Engine Comparison Styles */
.engine-comparison-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.engine-comparison-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.engine-comparison-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.engine-comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.engine-icon-large {
    font-size: 2rem;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-comparison-header h4 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.engine-metrics-detailed {
    margin-bottom: 20px;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.engine-metrics-detailed .metric-bar {
    flex: 1;
    margin-left: 15px;
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.engine-metrics-detailed .metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.engine-metrics-detailed .metric-value {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    min-width: 25px;
}

.top-queries h5 {
    color: white;
    margin-bottom: 12px;
    font-size: 1rem;
}

.top-query-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-query-item:last-child {
    border-bottom: none;
}

.query-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.query-rank {
    font-size: 0.8rem;
    padding: 2px 6px;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-radius: 4px;
    font-weight: 500;
}

/* Evidence Table Styles */
.evidence-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(20px);
}

.evidence-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.evidence-filters select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.9rem;
}

.evidence-table-container {
    overflow-x: auto;
}

.evidence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.evidence-table th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.evidence-table td {
    padding: 12px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.evidence-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.engine-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.query-cell {
    max-width: 200px;
}

.rank-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
}

.rank-badge.rank-good { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.rank-badge.rank-medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.rank-badge.rank-poor { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
}

.type-badge.type-mention { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.type-badge.type-link { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.type-badge.type-extract { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.source-cell {
    max-width: 250px;
}

.source-link {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.source-link:hover {
    color: #ec4899;
    text-decoration: underline;
}

.actions-cell {
    white-space: nowrap;
}

.btn-copy, .btn-open {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    margin-right: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.btn-copy:hover, .btn-open:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    color: #8b5cf6;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.empty-icon, .empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-placeholder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    opacity: 0.3;
}

.placeholder-gauge {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.placeholder-gauge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.placeholder-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.placeholder-card {
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-view {
    text-align: center;
    padding: 80px 40px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-view .empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-view h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.empty-view p {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.empty-heatmap-preview {
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.3;
}

.preview-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-row {
    display: grid;
    grid-template-columns: 120px repeat(3, 40px);
    gap: 8px;
    align-items: center;
}

.preview-query {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
}

.preview-cell {
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-message {
    text-align: center;
    padding: 40px 30px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.results-message p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.results-message .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .search-section h1 {
        font-size: 3rem;
        text-align: center;
    }
    
    .search-section .hero-subtitle,
    .search-section .hero-value {
        text-align: center;
    }
    
    .search-input-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .input-group {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        align-self: stretch;
        height: 52px;
    }
    
    .search-results {
        padding: 30px 20px;
    }
    
    .engine-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero h2 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .cta-form form {
        flex-direction: column;
    }
    
    .cta-form input[type="email"] {
        width: 100%;
    }
    
    .problem-points,
    .solution-features,
    .stats,
    .advantages {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-bars {
        height: 120px;
    }
    
    .bar {
        width: 28px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-card {
        min-width: auto;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .engine-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .search-section {
        min-height: 100vh;
        padding: 100px 0 60px 0;
    }
    
    .search-section h1 {
        font-size: 2.5rem;
    }
    
    .search-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-section .hero-value {
        font-size: 1rem;
    }
    
    .search-input-container {
        padding: 12px;
        max-width: 100%;
    }
    
    .input-group input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .input-label {
        font-size: 0.7rem;
    }
    
    .search-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
        height: 48px;
    }
    
    .engine-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dashboard-content {
        padding: 0 16px 16px 16px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .competitor-info {
        min-width: 100px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero,
    .problem,
    .solution,
    .why-now,
    .why-looptra,
    .final-cta {
        padding: 80px 0;
    }
    
    .mockup-content {
        padding: 20px;
    }
    
    .problem-point,
    .feature,
    .advantage,
    .stat {
        padding: 30px 20px;
    }
    
    .cta-form {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-highlight {
        font-size: 1.5rem;
    }
    
    /* Advanced Dashboard Mobile Styles */
    .main-kpis {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .kpi-card.primary {
        grid-row: span 1;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gauge-container {
        width: 100px;
        height: 100px;
    }
    
    .gauge-value {
        font-size: 1.5rem;
    }
    
    .kpi-value {
        font-size: 2rem;
    }
    
    .dashboard-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .heatmap-header,
    .heatmap-row {
        grid-template-columns: 150px repeat(5, 80px);
    }
    
    .engine-header {
        font-size: 0.7rem;
        padding: 8px 4px;
    }
    
    .query-cell {
        font-size: 0.75rem;
        padding: 8px;
    }
    
    .heatmap-cell {
        min-height: 40px;
        font-size: 0.8rem;
        padding: 6px 4px;
    }
    
    .wins-gaps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .engine-comparison-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .evidence-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .evidence-table {
        font-size: 0.8rem;
    }
    
    .evidence-table th,
    .evidence-table td {
        padding: 8px;
    }
    
    .view-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .view-header h3 {
        font-size: 1.2rem;
    }
    
    .view-controls {
        justify-content: flex-start;
    }
    
    /* Comparison tab responsive */
    .competitor-checkboxes {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .comparison-table-container {
        padding: 15px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .brand-comparison-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .comparison-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .engine-sov-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .timeline-chart {
        padding: 15px;
        height: 120px;
    }
    
    .score-bars {
        height: 60px;
    }
    
    .score-bar {
        width: 8px;
    }
    
    /* Evidence tab responsive */
    .evidence-filters {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .evidence-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .evidence-meta {
        justify-content: space-between;
        gap: 10px;
    }
    
    .btn-evidence-modal {
        width: 100%;
        text-align: center;
    }
    
    .citation-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn-open-link {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Additional animations and effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .hero-visual {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Improved focus states for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.8);
    outline-offset: 2px;
}

/* Test Context Banner */
.test-context-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.context-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.context-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.context-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

.context-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.context-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.context-value {
    color: white;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Context Tags */
.context-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.context-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.context-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.brand-tag {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border-color: rgba(139, 92, 246, 0.4);
}

.engine-tag {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.competitor-tag {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.3);
}

.time-tag {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.queries-tag {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
}

.segment-tag {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.3);
}


/* Mini-graphs */
.mini-graphs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.mini-graph {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.mini-graph h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

/* Engine Distribution Bars */
.engine-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.engine-bar-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.engine-bar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.mini-engine-logo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.engine-name {
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.engine-percentage {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.engine-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.engine-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

/* Score Evolution Chart */
.score-chart-container {
    position: relative;
}

.score-chart {
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
}

.score-chart-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.chart-label-trend {
    color: #22c55e;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.chart-label-trend:before {
    content: '';
}

/* Responsive design for mini-graphs */
@media (max-width: 768px) {
    .mini-graphs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Heatmap Global Filters */
.global-filters {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.filter-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
}

.filter-group select option {
    background: #2d2d2d;
    color: white;
}

.multi-select {
    height: auto;
    min-height: 36px;
}

/* Heatmap Actions */
.heatmap-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.search-group {
    display: flex;
    gap: 5px;
    flex: 1;
    max-width: 300px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 8px 12px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-export {
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

/* Intent Summary */
.intent-summary {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.intent-summary h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.intent-table-container {
    overflow-x: auto;
}

.intent-table {
    width: 100%;
    border-collapse: collapse;
}

.intent-table th {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.intent-table td {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.intent-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.intent-navigational {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.intent-categorical {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.intent-transactional {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.intent-coverage, .intent-mrr {
    font-weight: 600;
}

/* Responsive Heatmap */
@media (max-width: 768px) {
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .heatmap-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group {
        max-width: none;
    }
}

/* Engine Logos */
.engine-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: none;
    border: none;
    box-shadow: none;
}

.engine-logo-large {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: none;
    border: none;
    box-shadow: none;
}

/* Enhanced KPI Cards */
.kpi-detail {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.mini-sparks {
    display: flex;
    gap: 3px;
    margin-top: 8px;
    height: 20px;
}

.spark-bar {
    width: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.spark-bar.chatgpt { background: linear-gradient(to top, #10b981, #059669); }
.spark-bar.perplexity { background: linear-gradient(to top, #8b5cf6, #7c3aed); }
.spark-bar.gemini { background: linear-gradient(to top, #f59e0b, #d97706); }

.win-lose-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.win-tag, .lose-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.win-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.lose-tag {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.score-calculation-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.score-calculation-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Performance Tiles */
.performance-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.perf-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
}

.perf-tile.top-engine {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.perf-tile.quick-fail {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.perf-icon {
    font-size: 2rem;
}

.perf-content {
    flex: 1;
}

.perf-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.perf-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.perf-details {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.quick-action-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 6px;
}

/* Explicability Panels */
.explicability-panels {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.explicability-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(20px);
}

.panel-header h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.panel-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Score Contribution */
.contribution-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.engine-contribution {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    gap: 12px;
    align-items: center;
}

.contribution-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.engine-icon {
    font-size: 1.2rem;
}

.engine-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.engine-weight {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.contribution-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contribution-segment {
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.contribution-segment:last-child {
    border-right: none;
}

.contribution-segment.coverage { background: #10b981; }
.contribution-segment.mrr { background: #8b5cf6; }
.contribution-segment.winrate { background: #f59e0b; }
.contribution-segment.stability { background: #6b7280; }

.contribution-score {
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.contribution-legend {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.coverage { background: #10b981; }
.legend-color.mrr { background: #8b5cf6; }
.legend-color.winrate { background: #f59e0b; }
.legend-color.stability { background: #6b7280; }

/* Quick Wins */
.quick-wins-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-win-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.quick-win-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.win-priority {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.priority-badge, .effort-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.priority-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.effort-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.effort-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.win-content h5 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.win-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.win-engines {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.affected-engine {
    padding: 2px 6px;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-radius: 4px;
    font-size: 0.7rem;
}

.win-action-btn {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

/* Evidence Panel */
.evidence-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.evidence-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.evidence-stat .stat-value {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.evidence-stat .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.evidence-modal-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.evidence-modal-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Responsive for new components */
@media (max-width: 768px) {
    .context-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .performance-tiles {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .explicability-panels {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .engine-contribution {
        grid-template-columns: 100px 1fr 50px;
        gap: 8px;
    }
    
    .contribution-legend {
        gap: 10px;
    }
    
    .mini-sparks {
        height: 16px;
    }
    
    .spark-bar {
        width: 6px;
    }
}

/* ===== EVIDENCE TAB STYLES ===== */

/* Evidence filters */
.evidence-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.filter-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.filter-group select option {
    background: #2d2d2d;
    color: white;
}

.filter-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Evidence list */
.evidence-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.evidence-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.evidence-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Evidence header */
.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.evidence-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.evidence-engine {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
}

.evidence-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.evidence-sentiment {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.evidence-sentiment.sentiment-négatif {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.evidence-sentiment.sentiment-positif {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.evidence-sentiment.sentiment-neutre {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.btn-evidence-modal {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-evidence-modal:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Evidence query */
.evidence-query {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 4px solid #8b5cf6;
}

.evidence-query strong {
    color: white;
}

.evidence-intent {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Evidence extract */
.evidence-extract {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.brand-highlight {
    background: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

/* Evidence citations */
.evidence-citations h5 {
    color: white;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.citations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.citation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.citation-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.citation-info {
    flex: 1;
    min-width: 0;
}

.citation-domain {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.brand-badge {
    background: #22c55e;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.citation-url {
    font-size: 0.9rem;
}

.citation-url a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    word-break: break-all;
}

.citation-url a:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

.btn-open-link {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 15px;
}

.btn-open-link:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

/* No evidence message */
.no-evidence {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-evidence-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-evidence h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-evidence p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== COMPARAISON TAB STYLES ===== */

/* Competitor selection */
.competitor-selection {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.competitor-selection h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.competitor-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.competitor-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.competitor-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.competitor-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8b5cf6;
}

/* Comparison table */
.comparison-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.comparison-table th {
    background: rgba(139, 92, 246, 0.2);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    white-space: nowrap;
}

.comparison-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.brand-cell {
    min-width: 120px;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-weight: 600;
}

.brand-name.brand-self {
    color: #8b5cf6;
}

.self-badge {
    background: #8b5cf6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.metric-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.metric-bar-small {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    flex: 1;
    overflow: hidden;
}

.metric-bar-small .metric-fill {
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    height: 100%;
    transition: width 0.5s ease;
}

.sentiment-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sentiment-score {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.sentiment-score.sentiment-positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.sentiment-score.sentiment-negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.sentiment-score.sentiment-neutral {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* Comparison charts */
.comparison-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.chart-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Comparison bars chart */
.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.brand-comparison-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
}

.brand-label {
    color: white;
    font-weight: 600;
}

.comparison-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    min-width: 70px;
}

.metric-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}


/* Engine SOV chart */
.engine-sov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.engine-sov-column {
    text-align: center;
}

.engine-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.sov-bars {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.sov-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sov-bar-mini {
    width: 20px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.sov-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(0deg, #8b5cf6 0%, #ec4899 100%);
    transition: height 0.8s ease;
}

.sov-fill.self-brand {
    background: linear-gradient(0deg, #22c55e 0%, #16a34a 100%);
}

.sov-value {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Historical chart */
.historical-evolution {
    text-align: center;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.self-brand {
    background: linear-gradient(45deg, #22c55e 0%, #16a34a 100%);
}

.legend-color.competitor {
    background: linear-gradient(45deg, #8b5cf6 0%, #ec4899 100%);
}

.timeline-chart {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.month-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.score-bars {
    display: flex;
    gap: 5px;
    align-items: end;
    height: 80px;
}

.score-bar {
    width: 12px;
    border-radius: 4px 4px 0 0;
    transition: height 0.8s ease;
}

.score-bar.self {
    background: linear-gradient(0deg, #22c55e 0%, #16a34a 100%);
}

.score-bar.competitor {
    background: linear-gradient(0deg, #8b5cf6 0%, #ec4899 100%);
}

.score-values {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.self-score {
    color: #22c55e;
    font-weight: 600;
}

.competitor-score {
    color: #8b5cf6;
    font-weight: 600;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Citations Tab Styles */
.citations-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.citations-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.citations-filters label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.citations-filters select {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.citations-filters select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.citations-filters select option {
    background: #2d2d2d;
    color: white;
}

.citations-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 30px;
}

.citations-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.citations-table {
    width: 100%;
    border-collapse: collapse;
}

.citations-table th {
    background: rgba(139, 92, 246, 0.2);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.citations-table th:hover {
    background: rgba(139, 92, 246, 0.3);
}

.citations-table th[data-sort]:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.citations-table th.sort-desc:after {
    transform: translateY(-50%) rotate(180deg);
}

.citations-table th.sort-asc:after {
    transform: translateY(-50%) rotate(0deg);
}

.citations-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: background-color 0.3s ease;
}

.citations-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.citations-table .domain-cell {
    font-weight: 600;
    color: #8b5cf6;
    cursor: pointer;
    text-decoration: underline;
}

.citations-table .domain-cell:hover {
    color: #a78bfa;
}

.citations-table .brand-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.citations-chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.citations-chart-container h4 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.citations-chart {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.citations-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    width: 100%;
    max-width: 60px;
}

.citations-bar-visual {
    background: linear-gradient(180deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 4px 4px 0 0;
    width: 100%;
    min-height: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.citations-bar:hover .citations-bar-visual {
    transform: scaleY(1.05);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.citations-bar-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    word-break: break-word;
    max-width: 60px;
}

.citations-bar-value {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Citations Chart by Engine Styles */
.engine-citations-column {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 15px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.citations-bars {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px 8px;
    gap: 6px;
    margin-top: 15px;
}

.citation-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 35px;
    flex: 1;
}

.citation-bar {
    width: 28px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.citation-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    transition: height 0.8s ease;
    border-radius: 0 0 4px 4px;
}

.citation-fill.brand-fill {
    background: linear-gradient(0deg, #22c55e 0%, #16a34a 100%);
}

.citation-fill.external-fill {
    background: linear-gradient(0deg, #8b5cf6 0%, #ec4899 100%);
}

.citation-domain-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45px;
}

.citation-percentage {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    margin-top: 4px;
}

/* Wins & Gaps Styles */
.wins-gaps-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.wins-gaps-kpis .kpi-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.wins-gaps-kpis .kpi-card.wins {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.wins-gaps-kpis .kpi-card.gaps {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.wins-gaps-kpis .kpi-card.ties {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.wins-gaps-kpis .kpi-card.none {
    border-color: rgba(156, 163, 175, 0.3);
    background: rgba(156, 163, 175, 0.05);
}

.wins-gaps-kpis .kpi-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .wins-gaps-kpis {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .wins-gaps-kpis {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Wins vs Gaps Chart by Intent */
.wins-gaps-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.wins-gaps-chart h4 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.intent-bars-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intent-bar-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.intent-bar-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 150px;
    flex-shrink: 0;
}

.intent-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.intent-badge.intent-navigational {
    background: rgba(59, 130, 246, 0.8);
}

.intent-badge.intent-categorical {
    background: rgba(168, 85, 247, 0.8);
}

.intent-badge.intent-transactional {
    background: rgba(34, 197, 94, 0.8);
}

.intent-totals {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.intent-bar-chart {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
    min-height: 40px;
}

.bar-container {
    display: flex;
    align-items: center;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.bar-wins, .bar-gaps {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: width 0.8s ease;
    position: relative;
    min-width: 30px;
}

.bar-wins {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.bar-gaps {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.bar-value {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .intent-bar-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .intent-bar-label {
        min-width: auto;
        align-items: center;
        text-align: center;
    }
}

/* Modal Overlay Base Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    animation: modalFadeIn 0.3s ease forwards;
}

.modal-overlay .modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95), rgba(20, 20, 35, 0.95));
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    animation: modalScaleIn 0.3s ease forwards;
}

.modal-overlay .modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-overlay .modal-header h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-overlay .modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-overlay .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.modal-overlay .modal-body {
    padding: 25px 30px 30px;
}

@keyframes modalFadeIn {
    to { opacity: 1; }
}

@keyframes modalScaleIn {
    to { transform: scale(1); }
}

/* Domain Details Modal */
.domain-details-modal {
    max-width: 600px;
    width: 90vw;
}

.domain-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.stat-value {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.urls-list h4 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 1.1rem;
}

.urls-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.url-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.url-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.url-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    word-break: break-all;
}

.url-count {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: right;
}

.btn-link {
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-link:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

/* Notification Styles */
.notification {
    font-family: 'Inter', sans-serif;
    z-index: 10000;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.notification-content button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.notification-content button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Citations Styles */
@media (max-width: 1024px) {
    .citations-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .citations-chart-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .citations-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .citations-filters .filter-group {
        min-width: auto;
    }
    
    .citations-table {
        font-size: 0.9rem;
    }
    
    .citations-table th,
    .citations-table td {
        padding: 10px 15px;
    }
    
    .citations-chart {
        height: 300px;
    }
    
    .domain-stats {
        grid-template-columns: 1fr;
    }
    
    .url-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .url-count {
        min-width: auto;
        text-align: left;
    }
}

/* Competitive Tab Styles */
.competitive-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.leaderboard-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-section h4 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.leaderboard-container {
    margin-bottom: 30px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.leaderboard-table th {
    background: rgba(139, 92, 246, 0.2);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.leaderboard-table th:hover {
    background: rgba(139, 92, 246, 0.3);
}

.leaderboard-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: background-color 0.3s ease;
}

.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr.highlighted td {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.brand-row td {
    background: rgba(16, 185, 129, 0.1);
}

.brand-row.highlighted td {
    background: rgba(16, 185, 129, 0.2);
}

.rank-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.rank-indicator.top-rank {
    color: #fbbf24;
}

.actor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actor-name {
    font-weight: 600;
}

.actor-name.brand-name {
    color: #10b981;
}

.brand-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.voice-share-visual {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 120px;
}

.voice-bar {
    flex: 1;
    height: 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.voice-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.voice-percentage {
    font-weight: 600;
    color: #8b5cf6;
    min-width: 45px;
    text-align: right;
}

/* Actor Cloud */
.actor-cloud {
    margin-top: 20px;
}

.actor-cloud h5 {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.actor-tag {
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.actor-tag.competitor-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}

.actor-tag.brand-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.actor-tag:hover, .actor-tag.highlighted {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.actor-tag.brand-tag:hover, .actor-tag.brand-tag.highlighted {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Co-presence Matrix */
.copresence-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copresence-section h4 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.copresence-matrix {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.copresence-matrix th,
.copresence-matrix td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.copresence-matrix th {
    background: rgba(139, 92, 246, 0.2);
    color: white;
    font-weight: 600;
}

.matrix-header.brand-header,
.matrix-label.brand-label {
    color: #10b981;
    font-weight: 600;
}

.matrix-self {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.matrix-cell {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.matrix-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

.matrix-legend {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.legend-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.legend-scale {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.scale-bar {
    width: 80px;
    height: 8px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.8) 100%);
    border-radius: 4px;
}

/* Competitive Charts */
.competitive-charts {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.competitive-charts h4 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.voice-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.engine-voice-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.engine-voice-column .engine-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.voice-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 20px 10px;
}

.voice-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 25px;
}

.voice-bar-visual {
    width: 25px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.voice-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    min-height: 4px;
}

.voice-fill.brand-fill {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.voice-fill.competitor-fill {
    background: linear-gradient(180deg, #8b5cf6 0%, #ec4899 100%);
}

.voice-bar-item:hover .voice-fill {
    transform: scaleY(1.05);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.voice-actor-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    word-break: break-word;
}

.voice-actor-label.brand-label {
    color: #10b981;
    font-weight: 600;
}

.voice-percentage {
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Responsive Competitive Styles */
@media (max-width: 1024px) {
    .competitive-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .voice-chart-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .leaderboard-table {
        font-size: 0.85rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 8px;
    }
    
    .voice-share-visual {
        width: 80px;
    }
    
    .copresence-matrix th,
    .copresence-matrix td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .voice-bars {
        height: 150px;
        padding: 15px 5px;
    }
    
    .voice-chart-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .actor-cloud {
        margin-top: 15px;
    }
    
    .cloud-container {
        gap: 8px;
        padding: 12px;
    }
    
    .actor-tag {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
}

/* View Placeholder Styles */
.view-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.view-placeholder .placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.view-placeholder h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.view-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    max-width: 500px;
    line-height: 1.5;
}

.placeholder-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.feature-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.coming-soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Responsive View Placeholder */
@media (max-width: 768px) {
    .view-placeholder {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .view-placeholder .placeholder-icon {
        font-size: 3rem;
    }
    
    .view-placeholder h3 {
        font-size: 1.4rem;
    }
    
    .view-placeholder p {
        font-size: 1rem;
    }
    
    .placeholder-features {
        gap: 8px;
    }
    
    .feature-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}