/* Custom styles for Zina AI Marketing Platform */

:root {
    --zina-primary: #0d6efd;
    --zina-secondary: #6c757d;
    --zina-success: #198754;
    --zina-warning: #ffc107;
    --zina-danger: #dc3545;
    --zina-info: #0dcaf0;
    --zina-purple: #6f42c1;
    --df-canvas-size: 1000000px; /* стартовый размер 1 млн px */
}

.parent-drawflow {
    width: 100%;
    height: 100%;
    overflow: auto; /* скролл вместо масштабирования */
}

.parent-drawflow .drawflow {
    width: var(--df-canvas-size);
    height: var(--df-canvas-size);
    position: relative; /* для абсолютного позиционирования узлов */
}

/* Override drawflow container size to ensure equal width and height with scroll */
#drawflow {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 0 !important;
    overflow: auto !important;
}

/* New Landing Page Styles */
.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: #f8fafc;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 500px;
}

.social-proof {
    margin-top: 2rem;
}

.avatar-group {
    display: flex;
    gap: -8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
}

.avatar:nth-child(1) { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.avatar:nth-child(2) { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.avatar:nth-child(3) { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.avatar:nth-child(4) { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.journey-builder-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.mockup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.mockup-content {
    padding: 2rem;
    position: relative;
    height: 300px;
}

.workflow-step {
    position: relative;
    margin-bottom: 2rem;
}

.step-icon {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    position: relative;
}

.step-line {
    width: 2px;
    height: 40px;
    background: #e5e7eb;
    position: absolute;
    left: 15px;
    top: 32px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.float-element.blue {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.float-element.purple {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 60%;
    right: 30%;
    animation-delay: 2s;
}

.float-element.green {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .journey-builder-mockup {
        margin-top: 3rem;
    }
}

/* Modern Hero Section */
.modern-hero {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content-modern {
    max-width: 800px;
    margin: 0 auto;
}

/* Brand Section */
.brand-section {
    margin-bottom: 4rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Typography */
.main-heading {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}

.lead-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #64748b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Buttons */
.btn-modern {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-primary.btn-modern {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-primary.btn-modern:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-1px);
}

.btn-outline-secondary.btn-modern {
    background: transparent;
    color: #64748b;
    border-color: #e2e8f0;
}

.btn-outline-secondary.btn-modern:hover {
    background: #f8fafc;
    color: #1a1a1a;
    border-color: #cbd5e1;
}

.btn-outline-primary.btn-modern {
    background: transparent;
    color: #000;
    border-color: #e2e8f0;
}

.btn-outline-primary.btn-modern:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.benefit-desc {
    color: #64748b;
    font-size: 0.9rem;
}

/* Features Section */
.features-modern {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.feature-modern {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.feature-modern:last-child {
    border-bottom: none;
}

.feature-number {
    font-size: 1rem;
    font-weight: 700;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Stats Section */
.stats-modern {
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Final CTA */
.final-cta {
    background: #000;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #a1a1aa;
    margin-bottom: 2rem;
}

.final-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.final-buttons .btn-primary.btn-modern {
    background: white;
    color: #000;
    border-color: white;
}

.final-buttons .btn-primary.btn-modern:hover {
    background: #f8fafc;
    border-color: #f8fafc;
}

.final-buttons .btn-outline-primary.btn-modern {
    border-color: #374151;
    color: #a1a1aa;
}

.final-buttons .btn-outline-primary.btn-modern:hover {
    background: #374151;
    color: white;
    border-color: #374151;
}

.trust-badge {
    margin-top: 2rem;
}

/* Lovable Badge */
#lovable-badge {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 141px;
    padding: 5px 13px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 5px;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1000000;
    text-transform: none !important;
    font-feature-settings: normal !important;
    font-weight: 400 !important;
    text-decoration: none;
}

#lovable-badge-close {
    position: absolute;
    top: -2px;
    right: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #A1A1AA;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-heading {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-modern {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .feature-number {
        align-self: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .final-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .final-buttons .btn-modern {
        width: 100%;
        max-width: 300px;
    }
}

@media (min-width: 769px) {
    .final-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Landing Page Styles */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.floating-shapes {
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: #fff;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: #fff;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: #fff;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content {
    color: white;
}

/* Dashboard Preview */
.dashboard-preview {
    max-width: 400px;
    margin: 0 auto;
}

.preview-window {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.window-header {
    background: rgba(248, 249, 250, 0.8);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close { background: #ff5f56; }
.control-minimize { background: #ffbd2e; }
.control-maximize { background: #27ca3f; }

.window-content {
    padding: 16px;
}

.metric-mini {
    border-radius: 8px;
    font-size: 0.85rem;
}

.chart-placeholder {
    height: 80px;
    margin-bottom: 12px;
}

.progress-sm {
    height: 4px;
}

.progress-list {
    font-size: 0.8rem;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card .card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover .card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(108, 117, 125, 0.05) 100%);
    border-radius: 24px;
}

.cta-content {
    padding: 2rem;
}

/* Button Enhancements */
.btn-lg.rounded-pill {
    border-radius: 50px !important;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

/* Purple color utility */
.text-purple { color: var(--zina-purple) !important; }
.bg-purple { background-color: var(--zina-purple) !important; }
.text-orange { color: #ff6b35 !important; }
.integration-card {
    cursor: pointer;
    transition: all 0.3s ease;
}
.integration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Main layout adjustments */
.main-content {
    padding-top: 76px; /* Account for fixed navbar */
    min-height: 100vh;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Template and integration cards */
.template-card,
.integration-card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.template-card:hover,
.integration-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
    border-color: var(--bs-primary) !important;
}

/* Journey builder specific styles */
.journey-step {
    transition: all 0.3s ease;
    cursor: pointer;
}

.journey-step:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.journey-canvas {
    background: 
        radial-gradient(circle at 20px 20px, rgba(255,255,255,0.1) 1px, transparent 0),
        radial-gradient(circle at 80px 80px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 100px 100px;
    min-height: 400px;
    border: 2px dashed var(--bs-border-color);
    border-radius: 0.375rem;
}

/* Dashboard specific styles */
.metric-card {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
    color: white;
}

.metric-card .card-body {
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Progress bars */
.progress {
    border-radius: 4px;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Badge styles */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Button enhancements */
.btn {
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AI insights panel */
.ai-insight {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-left: 4px solid var(--bs-primary);
}

/* Analytics charts container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bs-gray-200);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-gray-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}



.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-in-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-indicator.connected {
    background-color: var(--zina-success);
}

.status-indicator.pending {
    background-color: var(--zina-warning);
}

.status-indicator.error {
    background-color: var(--zina-danger);
}

.status-indicator.disconnected {
    background-color: var(--zina-secondary);
}

/* Campaign type indicators */
.campaign-type-email {
    color: var(--zina-primary);
}

.campaign-type-sms {
    color: var(--zina-success);
}

.campaign-type-push {
    color: var(--zina-warning);
}

/* Customer segment styling */
.segment-vip {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b6914;
}

.segment-regular {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.segment-at-risk {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

/* Form styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--zina-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 0.75rem;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--zina-primary), var(--zina-info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--zina-primary), var(--zina-info)) 1;
}

/* Features Section Styles */
.features-section {
    background: #ffffff;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* Target Audience Section Styles */
.target-audience-section {
    background: #f8fafc;
    position: relative;
}

.audience-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.audience-card:hover::before {
    opacity: 1;
}

.audience-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.audience-card:hover .audience-icon {
    transform: scale(1.1);
}

.audience-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.audience-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .audience-card {
        padding: 1.5rem;
    }
    
    .audience-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* Business Solutions Section Styles */
.business-solutions-section {
    background: #ffffff;
    position: relative;
}

.solution-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
}

.solution-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.solution-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.solution-metric {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

@media (max-width: 768px) {
    .solution-card {
        padding: 1.5rem;
    }
    
    .solution-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* Final CTA Section Styles */
.final-cta-section {
    background: #f8fafc;
    position: relative;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.cta-buttons .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #64748b;
    background: white;
}

.cta-buttons .btn-outline-secondary:hover {
    border-color: #667eea;
    color: #667eea;
    background: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}


/* Dashboard Light Theme Styles */
body {
    background-color: #f8fafc;
}

.main-content {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Dashboard Cards */
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Navigation Link Styles */
.navbar-light .navbar-nav .nav-link {
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    white-space: nowrap !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.navbar-light .navbar-nav .nav-link.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.15);
    font-weight: 600;
}

.navbar-light .navbar-brand {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.navbar-light .navbar-brand:hover {
    color: #667eea;
}

/* Dashboard Metrics */
.bg-primary.bg-opacity-10 {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

.text-primary {
    color: #667eea !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.text-success {
    color: #10b981 !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.text-warning {
    color: #f59e0b !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.text-info {
    color: #3b82f6 !important;
}

/* Badge Styles */
.badge.bg-success {
    background-color: #10b981 !important;
}

.badge.bg-primary {
    background-color: #667eea !important;
}

.badge.bg-secondary {
    background-color: #6b7280 !important;
}

/* Text Colors */
.text-muted {
    color: #64748b !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
}

/* Buttons */
.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.btn-outline-success {
    border-color: #10b981;
    color: #10b981;
}

.btn-outline-success:hover {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-outline-warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-outline-warning:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

/* Charts and Canvas Styles */
.chart-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}

.journey-canvas {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* Additional Dashboard Enhancements */
.container-fluid {
    max-width: 1400px;
}

/* Enhanced shadows and hover effects */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* List group styling */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: #f8fafc;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Dropdown menu styling */
.dropdown-menu {
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #667eea;
}

/* Исправление выравнивания кнопок быстрых действий */
.card-body .row.g-3 .col-4 .btn {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
}

.card-body .row.g-3 .col-4 .btn i {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-body .row.g-3 .col-4 .btn span {
    font-weight: 500;
    line-height: 1.2;
}

/* Улучшенное выравнивание навигационной панели */
.navbar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.navbar-nav .nav-link i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    font-size: 14px !important;
    margin-right: 0.5rem !important;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    font-weight: 600 !important;
}

.logo-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
}

.dropdown-item i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    font-size: 14px !important;
    margin-right: 0.5rem !important;
}

.dropdown-header {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.5rem 1rem 0.25rem !important;
}

/* Обеспечиваем одинаковую высоту всех элементов навигации */
.navbar-nav .nav-item .nav-link,
.navbar-nav .nav-item .dropdown-toggle {
    min-height: 40px !important;
    line-height: 1.5 !important;
}

/* Улучшенное выравнивание логотипа */
.navbar-brand span {
    margin-left: 0.5rem !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

/* Responsive улучшения */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-nav .nav-link i {
        margin-right: 0.75rem !important;
    }
}

/* Дополнительное улучшение навигации */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.navbar-nav {
    align-items: center !important;
}

.navbar-nav .nav-item {
    margin: 0 2px !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    border-radius: 6px !important;
    color: var(--zina-primary) !important;
}

.dropdown-menu {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.25rem !important;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: var(--zina-primary) !important;
}

.dropdown-divider {
    margin: 0.5rem 0 !important;
}

/* Улучшение для мобильных устройств */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
        padding: 1rem !important;
        margin-top: 0.5rem !important;
    }
    
    .navbar-nav .nav-item {
        margin: 2px 0 !important;
    }
    
    .navbar-nav .nav-link:hover {
        margin: 0 -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Сетка характеристик компании в профиле */
.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem 2rem;
}

.company-info label {
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

/* ---------- Visual Editor Fullscreen & Properties Panel ---------- */
.visual-editor-modal .modal-dialog {
    max-width: 100vw !important;
    margin: 0;
}

.visual-editor-modal .modal-content {
    height: 100vh !important;
}

.visual-editor-modal .modal-body {
    height: calc(100vh - 60px) !important; /* 60px – высота toolbar */
}

/* Свойства узла: растягиваем на всю высоту */
.visual-editor-modal .node-properties {
    max-height: none !important;
    height: 100% !important;
}

/* ===== Infinite Canvas ===== */
.infinite-canvas__parent {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.infinite-canvas__layer {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0; /* точка отсчёта для scale() */
}

.infinite-canvas__no-select,
.infinite-canvas__no-select * {
  user-select: none !important;
  cursor: grab;
}

/* Override action button dropdown to be visible on white backgrounds */
.btn-outline-secondary.dropdown-toggle {
    background-color: #6c757d !important; /* grey background */
    border-color: #6c757d !important;
    color: #fff !important;
}

.btn-outline-secondary.dropdown-toggle:hover {
    background-color: #5c636a !important;
    border-color: #545b62 !important;
}

/* позволяем выпадающему меню выходить за границы таблицы */
.table-responsive {
    overflow: visible !important;
}

/* ======== Custom Channel Colors ======== */

/* WhatsApp */
.btn-outline-whatsapp {
    border-color: #25D366;
    color: #25D366;
}
.btn-outline-whatsapp:hover,
.btn-whatsapp {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}
.badge.bg-whatsapp {
    background-color: #25D366 !important;
    color: #fff !important;
}

/* Telegram */
.btn-outline-telegram {
    border-color: #0088cc;
    color: #0088cc;
}
.btn-outline-telegram:hover,
.btn-telegram {
    background-color: #0088cc !important;
    border-color: #0088cc !important;
    color: #fff !important;
}
.badge.bg-telegram {
    background-color: #0088cc !important;
    color: #fff !important;
}

/* VKontakte */
.btn-outline-vk {
    border-color: #4c75a3;
    color: #4c75a3;
}
.btn-outline-vk:hover,
.btn-vk {
    background-color: #4c75a3 !important;
    border-color: #4c75a3 !important;
    color: #fff !important;
}
.badge.bg-vk {
    background-color: #4c75a3 !important;
    color: #fff !important;
}

/* ======================================= */

/* Компактный режим шапки: уменьшаем расстояние между пунктами меню */
.navbar .navbar-nav .nav-link {
    padding: 0.35rem 0.6rem !important;
    margin: 0 0.1rem !important;
    font-size: 0.95rem !important;
}

.navbar .navbar-nav .nav-link i {
    margin-right: 0.35rem !important;
}

.navbar .navbar-nav .nav-item {
    margin: 0 1px !important;
}

.navbar .navbar-brand {
    margin-right: 0.5rem !important;
}
