* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Theme variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.98);
    --hero-gradient: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    --footer-bg: #f1f5f9;
}

body.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --header-bg: rgba(15, 23, 42, 0.98);
    --hero-gradient: linear-gradient(135deg, #1e1b2e 0%, #0f172a 100%);
    --footer-bg: #0f172a;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s;
    transform: translateY(0);
}

.header.hide {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    position: relative;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(220,38,38,0.3);
}

.logo-icon i {
    font-size: 20px;
    color: white;
}

.logo-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text span {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.nav-links a, .mega-trigger {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-links a:hover, .mega-trigger:hover {
    color: #dc2626;
}

/* Mega menu */
.mega-menu {
    position: relative;
}

.mega-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.mega-trigger i {
    font-size: 10px;
    transition: transform 0.2s;
}

.mega-menu.active .mega-trigger i {
    transform: rotate(180deg);
}

.mega-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    min-width: 220px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
    z-index: 100;
}

.mega-menu.active .mega-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-item {
    display: block;
    padding: 10px 24px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.mega-item:hover {
    background: var(--bg-secondary);
    color: #dc2626;
}

.mega-item small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    white-space: nowrap;
}

.btn-primary {
    background: #dc2626;
    color: white;
    box-shadow: 0 2px 6px rgba(220,38,38,0.2);
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.btn-red-outline {
    border: 1px solid #dc2626;
    background: transparent;
    color: #dc2626;
}

.btn-red-outline:hover {
    background: #dc2626;
    color: white;
}

.btn-white {
    background: white;
    color: #dc2626;
    border: none;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
}

/* Theme & Language */
.desktop-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle, .lang-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.lang-dropdown {
    position: relative;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 120px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.lang-item:hover {
    background: var(--bg-secondary);
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 999;
    padding: 80px 24px 32px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    flex: 1;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-mega {
    margin: 10px 0;
}

.mobile-mega-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.mobile-mega-content {
    display: none;
    padding-left: 16px;
    margin-top: 10px;
}

.mobile-mega-content.active {
    display: block;
}

.mobile-mega-content a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: none;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.mobile-actions .btn {
    justify-content: center;
}

.mobile-controls {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-controls .lang-dropdown {
    flex: 1;
}

.mobile-controls .lang-btn {
    width: 100%;
    justify-content: center;
}

.mobile-controls .theme-toggle {
    flex: 1;
    justify-content: center;
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: var(--hero-gradient);
}

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

.badge {
    display: inline-block;
    background: rgba(220,38,38,0.1);
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 40px;
    margin-bottom: 24px;
}

h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.25s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #dc2626;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #dc2626;
}

/* How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    background: #dc2626;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-weight: 800;
    font-size: 24px;
}

/* Stats */
.stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 48px;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number-large {
    font-size: 48px;
    font-weight: 800;
    color: #dc2626;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 32px;
    padding: 64px;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-section p {
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    z-index: 1000;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 32px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #dc2626;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-links { gap: 16px; }
    .nav-links a, .mega-trigger { font-size: 13px; }
    .action-buttons .btn { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 950px) {
    .burger { display: flex; }
    .nav-links, .action-buttons, .desktop-controls {
        display: none;
    }
    .header-inner { padding: 12px 20px; }
    .hero-grid { grid-template-columns: 1fr; }
    h1 { font-size: 40px; }
    .container { padding: 0 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .steps-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { flex-direction: column; gap: 30px; }
    .cta-section { padding: 40px 24px; }
    .cta-section h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 24px; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .container { padding: 0 16px; }
    .cookie-banner { left: 16px; right: 16px; }
}

/* ======================== */
/* SOCIAL LISTENING MODULE  */
/* ======================== */

/* Search container */
.sl-search-container {
    margin-bottom: 40px;
}

.sl-search-box {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sl-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 48px;
    font-size: 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
}

.sl-input:focus {
    outline: none;
    border-color: #dc2626;
}

/* Platform filters */
.sl-platform-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-filter {
    padding: 8px 20px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    color: var(--text-primary);
}

.platform-filter.active {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.platform-filter:hover:not(.active) {
    border-color: #dc2626;
    color: #dc2626;
}

/* Stats grid */
.sl-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.sl-stat-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.sl-stat-card:hover {
    transform: translateY(-2px);
}

.sl-stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.sl-stat-number {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.sl-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Results container */
.sl-results-container {
    margin-bottom: 40px;
}

.sl-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Mentions list */
.sl-mentions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sl-mention-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.sl-mention-item:hover {
    transform: translateX(4px);
    border-left: 3px solid #dc2626;
}

.sl-mention-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.sl-mention-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-secondary);
}

.platform-telegram i { color: #26A5E4; }
.platform-vk i { color: #4680C2; }
.platform-twitter i { color: #1DA1F2; }

.sl-mention-sentiment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

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

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

.sentiment-neutral {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.sl-mention-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.sl-mention-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.sl-mention-author,
.sl-mention-date,
.sl-mention-engagement {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sl-mention-action {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.sl-mention-action:hover {
    text-decoration: underline;
}

.sl-no-results {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
}

.sl-no-results i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Integration section */
.sl-integration {
    background: linear-gradient(135deg, rgba(220,38,38,0.05), rgba(220,38,38,0.02));
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(220,38,38,0.2);
}

.sl-integration h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.sl-integration p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.sl-integration-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .sl-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sl-mention-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sl-search-box {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sl-stats-grid {
        grid-template-columns: 1fr;
    }
}