/* ================================
   PARTNERS AI PLATFORM - STYLES
   ================================ */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #45B7D1;
    --primary-dark: #3A9BB8;
    --primary-light: #6DD5F1;
    --secondary-color: #8E44AD;
    --accent-color: #F39C12;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
    --warning-color: #F1C40F;
    --dark-bg: #1A1A2E;
    --card-bg: #FFFFFF;
    --sidebar-bg: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E8E8E8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === HEADER === */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--sidebar-bg);
    color: var(--primary-color);
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
    margin: 0 40px;
}

.header-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

.header-search input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--sidebar-bg);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(69, 183, 209, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--sidebar-bg);
    color: var(--primary-color);
}

.header-btn .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.ai-agent-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    position: relative;
    animation: aiPulse 3s infinite;
}

.ai-agent-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(69, 183, 209, 0.4);
}

.ai-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
}

@keyframes aiPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(69, 183, 209, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(69, 183, 209, 0);
    }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: var(--sidebar-bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--primary-color);
    color: white;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.user-profile span {
    font-weight: 600;
    font-size: 14px;
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    padding: 20px;
    z-index: 999;
    transition: var(--transition);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section h3 i {
    font-size: 14px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.sidebar-link:hover {
    background: var(--sidebar-bg);
    color: var(--primary-color);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.sidebar-link i {
    font-size: 16px;
    width: 20px;
}

.sidebar-link .count {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-link.active .count {
    background: rgba(255,255,255,0.3);
}

/* Sidebar text content */
.sidebar-text {
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.sidebar-text p {
    margin: 8px 0;
}

.sidebar-text strong {
    color: var(--text-primary);
    font-size: 13px;
}

.sidebar-footer {
    margin-top: 20px;
    padding: 20px;
    border-top: 2px solid var(--border-color);
}

/* === MAIN CONTENT === */
.main-content {
    margin-left: 280px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

/* === STATS BAR === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item i {
    font-size: 32px;
    color: var(--primary-color);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* === FILTER BAR === */
.filter-bar {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--sidebar-bg);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-tab:hover {
    background: var(--primary-light);
    color: white;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
}

.filter-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-options select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    background: white;
    color: var(--text-dark);
    transition: var(--transition);
}

.filter-options select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.view-toggle {
    background: var(--sidebar-bg);
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.view-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* === CZECHAI INFO CARD === */
.czechai-info-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    max-height: 80vh;
    overflow-y: auto;
}

.czechai-info-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.czechai-info-header i {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 15px;
}

.czechai-info-header h2 {
    font-size: 42px;
    color: var(--text-dark);
    margin: 10px 0;
}

.czechai-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 10px 0 0 0;
}

.czechai-info-content {
    display: grid;
    gap: 40px;
}

.czechai-intro {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.czechai-intro p {
    font-size: 16px;
    line-height: 1.8;
    margin: 15px 0;
    color: var(--text-primary);
}

.czechai-services h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.service-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-item i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 12px;
}

.service-item h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 10px 0;
}

.service-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Exclusive Offer Section */
.czechai-exclusive {
    margin-top: 20px;
}

.czechai-exclusive h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.exclusive-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.exclusive-box h4 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: white;
}

.exclusive-tagline {
    font-size: 16px;
    margin: 10px 0 25px 0;
    opacity: 0.95;
}

.exclusive-content {
    display: grid;
    gap: 25px;
}

.exclusive-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
}

.exclusive-section h5 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: white;
}

.exclusive-section p {
    font-size: 15px;
    line-height: 1.7;
    margin: 12px 0;
}

.transformation {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin: 15px 0;
}

.exclusive-pricing {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
}

.exclusive-pricing h5 {
    font-size: 20px;
    margin: 0 0 20px 0;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pricing-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.pricing-item i {
    font-size: 28px;
    margin-bottom: 10px;
}

.pricing-label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin: 8px 0;
}

.pricing-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-top: 5px;
}

.exclusive-note {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin: 15px 0;
}

.exclusive-contact {
    font-size: 16px;
    text-align: center;
    margin-top: 15px;
}

.exclusive-contact a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.czechai-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.czechai-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.czechai-stat i {
    font-size: 36px;
    color: #667eea;
}

.czechai-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.czechai-stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

.czechai-advantages {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.czechai-advantages h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.czechai-advantages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.czechai-advantages li {
    font-size: 15px;
    line-height: 2;
    color: var(--text-primary);
}

/* === CARDS GRID === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.function-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.function-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.function-card:hover::before {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.card-badge.new {
    background: linear-gradient(135deg, var(--success-color), #2ECC71);
    color: white;
}

.card-badge.coming-soon {
    background: var(--text-light);
    color: white;
}

.card-favorite {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
    color: var(--danger-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.card-favorite:hover {
    transform: scale(1.2);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: var(--transition);
}

.function-card:hover .card-icon::before {
    opacity: 1;
}

.card-icon.finance {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.card-icon.insurance {
    background: linear-gradient(135deg, #E74C3C, #F39C12);
}

.card-icon.documents {
    background: linear-gradient(135deg, #8E44AD, #9B59B6);
}

.card-icon.personal {
    background: linear-gradient(135deg, #16A085, #1ABC9C);
}

.card-icon.analytics {
    background: linear-gradient(135deg, #2980B9, #3498DB);
}

.card-icon.education {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
}

.card-icon.communication {
    background: linear-gradient(135deg, #E67E22, #F39C12);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.card-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.card-stats i {
    font-size: 14px;
    color: var(--primary-color);
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-btn:active {
    transform: translateY(0);
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 16px;
}

/* === FLOATING CHAT BUTTON === */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 18px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.floating-chat-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(69, 183, 209, 0.4);
}

.floating-chat-btn i {
    font-size: 24px;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--sidebar-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.modal-header h2 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.modal-header p {
    font-size: 14px;
    color: var(--text-light);
}

.modal-body {
    padding: 30px;
}

.modal-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.modal-placeholder i {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-placeholder p {
    font-size: 16px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--sidebar-bg);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--text-light);
    color: white;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === FOOTER === */
.main-footer {
    background: var(--card-bg);
    padding: 40px 30px;
    margin-left: 280px;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-left p {
    font-size: 14px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content,
    .main-footer {
        margin-left: 0;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .header-search {
        max-width: 400px;
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 15px;
        height: 60px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .header-search {
        display: none;
    }
    
    .user-profile span {
        display: none;
    }
    
    .sidebar {
        width: 260px;
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .main-content {
        margin-top: 60px;
        padding: 20px 15px;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .filter-tabs {
        width: 100%;
    }
    
    .filter-tab {
        flex: 1;
        min-width: auto;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    /* CzechAI Info Card - Mobile */
    .czechai-info-card {
        padding: 20px;
        max-height: none;
    }
    
    .czechai-info-header i {
        font-size: 48px;
    }
    
    .czechai-info-header h2 {
        font-size: 28px;
    }
    
    .czechai-subtitle {
        font-size: 14px;
    }
    
    .czechai-intro {
        padding: 20px;
    }
    
    .czechai-intro p {
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-item i {
        font-size: 24px;
    }
    
    .service-item h4 {
        font-size: 15px;
    }
    
    .service-item p {
        font-size: 13px;
    }
    
    .exclusive-box {
        padding: 20px;
    }
    
    .exclusive-box h4 {
        font-size: 20px;
    }
    
    .exclusive-tagline {
        font-size: 14px;
    }
    
    .exclusive-section {
        padding: 15px;
    }
    
    .exclusive-section h5 {
        font-size: 16px;
    }
    
    .exclusive-section p {
        font-size: 14px;
    }
    
    .transformation {
        font-size: 16px;
        padding: 12px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pricing-item {
        padding: 15px;
    }
    
    .pricing-value {
        font-size: 16px;
    }
    
    .czechai-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .czechai-stat {
        padding: 15px;
        gap: 10px;
    }
    
    .czechai-stat i {
        font-size: 28px;
    }
    
    .czechai-stat-value {
        font-size: 22px;
    }
    
    .czechai-stat-label {
        font-size: 12px;
    }
    
    .czechai-advantages {
        padding: 20px;
    }
    
    .czechai-advantages h3 {
        font-size: 20px;
    }
    
    .czechai-advantages li {
        font-size: 14px;
    }
    
    .floating-chat-btn {
        padding: 15px 20px;
        font-size: 14px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-chat-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .filter-bar {
        padding: 15px;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    /* CzechAI Info Card - Extra Small Mobile */
    .czechai-info-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .czechai-info-header i {
        font-size: 36px;
    }
    
    .czechai-info-header h2 {
        font-size: 24px;
    }
    
    .czechai-subtitle {
        font-size: 13px;
    }
    
    .czechai-intro {
        padding: 15px;
    }
    
    .czechai-intro p {
        font-size: 13px;
    }
    
    .czechai-services h3,
    .czechai-exclusive h3,
    .czechai-advantages h3 {
        font-size: 18px;
    }
    
    .service-item {
        padding: 12px;
    }
    
    .service-item i {
        font-size: 20px;
    }
    
    .service-item h4 {
        font-size: 14px;
    }
    
    .service-item p {
        font-size: 12px;
    }
    
    .exclusive-box {
        padding: 15px;
    }
    
    .exclusive-box h4 {
        font-size: 18px;
    }
    
    .exclusive-tagline {
        font-size: 13px;
    }
    
    .exclusive-section {
        padding: 12px;
    }
    
    .exclusive-section h5 {
        font-size: 15px;
    }
    
    .exclusive-section p {
        font-size: 13px;
    }
    
    .transformation {
        font-size: 14px;
        padding: 10px;
    }
    
    .exclusive-pricing {
        padding: 15px;
    }
    
    .pricing-item {
        padding: 12px;
    }
    
    .pricing-item i {
        font-size: 20px;
    }
    
    .pricing-value {
        font-size: 15px;
    }
    
    .pricing-label {
        font-size: 12px;
    }
    
    .exclusive-note {
        font-size: 13px;
        padding: 12px;
    }
    
    .exclusive-contact {
        font-size: 14px;
    }
    
    .czechai-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .czechai-stat {
        padding: 12px;
    }
    
    .czechai-stat i {
        font-size: 24px;
    }
    
    .czechai-stat-value {
        font-size: 20px;
    }
    
    .czechai-stat-label {
        font-size: 11px;
    }
    
    .czechai-advantages {
        padding: 15px;
    }
    
    .czechai-advantages li {
        font-size: 13px;
        line-height: 1.8;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MOBILE TOUCH OPTIMIZATIONS === */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly targets */
    .sidebar-link {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .card-btn {
        min-height: 48px;
        padding: 14px;
    }
    
    .filter-tab {
        min-height: 44px;
    }
    
    .header-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .function-card:hover {
        transform: none;
    }
    
    .service-item:hover {
        transform: none;
    }
    
    /* Tap highlight color */
    * {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }
}

/* === SMOOTH SCROLLING FOR MOBILE === */
.czechai-info-card {
    -webkit-overflow-scrolling: touch;
}

.sidebar {
    -webkit-overflow-scrolling: touch;
}

.function-card {
    animation: fadeIn 0.5s ease-out;
}

.function-card:nth-child(1) { animation-delay: 0.05s; }
.function-card:nth-child(2) { animation-delay: 0.1s; }
.function-card:nth-child(3) { animation-delay: 0.15s; }
.function-card:nth-child(4) { animation-delay: 0.2s; }
.function-card:nth-child(5) { animation-delay: 0.25s; }
.function-card:nth-child(6) { animation-delay: 0.3s; }

/* === UTILITIES === */
.hidden {
    display: none !important;
}

.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* === SCROLLBAR CUSTOM === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
/* AI AGENTS PANEL - Right Side */
.ai-agents-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 280px;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid #45B7D1;
}

.ai-agents-panel.collapsed {
    width: 50px;
}

.ai-agents-panel.collapsed .agents-panel-content,
.ai-agents-panel.collapsed .agents-panel-header h4 {
    display: none;
}

.agents-panel-header {
    background: linear-gradient(135deg, #45B7D1 0%, #8E44AD 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agents-panel-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.panel-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.agents-panel-content {
    padding: 10px;
}

.agent-row {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.agent-row:hover {
    background: linear-gradient(135deg, rgba(69,183,209,0.1) 0%, rgba(142,68,173,0.1) 100%);
    transform: translateX(-3px);
}

.agent-row:last-child {
    margin-bottom: 0;
}

.agent-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.agent-info {
    flex: 1;
    margin-left: 10px;
}

.agent-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.agent-desc {
    display: block;
    font-size: 11px;
    color: #888;
}

.agent-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ECC71;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,204,113,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(46,204,113,0); }
}

/* Responsive */
@media (max-width: 1200px) {
    .ai-agents-panel {
        right: 10px;
        width: 250px;
    }
}

@media (max-width: 768px) {
    .ai-agents-panel {
        display: none;
    }
}

/* EMBEDDED AI CHAT SIDEBAR */
.content-wrapper {
    display: flex;
    gap: 20px;
    flex: 1;
    margin-left: var(--sidebar-width, 260px);
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content {
    flex: 1;
    margin-left: 0 !important;
    padding: 0 !important;
}

.ai-chat-sidebar {
    width: 350px;
    min-width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    position: sticky;
    top: 90px;
    border-left: 4px solid #45B7D1;
}

.chat-header {
    background: linear-gradient(135deg, #45B7D1 0%, #8E44AD 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-select {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.agent-select option {
    background: #333;
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 90%;
}

.chat-message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.msg-avatar {
    font-size: 20px;
    flex-shrink: 0;
}

.msg-text {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-message.assistant .msg-text {
    background: #f5f7fa;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chat-message.user .msg-text {
    background: linear-gradient(135deg, #45B7D1, #8E44AD);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.typing .msg-text {
    display: flex;
    gap: 4px;
    padding: 15px;
}

.chat-message.typing .msg-text span {
    width: 6px;
    height: 6px;
    background: #45B7D1;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.chat-message.typing .msg-text span:nth-child(1) { animation-delay: -0.32s; }
.chat-message.typing .msg-text span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: #45B7D1;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #45B7D1, #8E44AD);
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .ai-chat-sidebar {
        width: 300px;
        min-width: 300px;
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    .ai-chat-sidebar {
        width: 100%;
        min-width: 100%;
        height: 400px;
        position: relative;
        top: 0;
    }
}

/* Expand chat button */
.expand-chat-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: auto;
    margin-right: 10px;
}

.expand-chat-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.chat-header {
    gap: 10px;
}

/* Expanded chat mode */
.ai-chat-sidebar.expanded {
    width: 60%;
    min-width: 500px;
    max-width: 800px;
}

.content-wrapper.chat-expanded .main-content {
    flex: 0 0 35%;
}

.expand-chat-btn {
    border: none;
    cursor: pointer;
}
