:root {
    --bg-body: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #0284c7;
    /* Sky 600 */
    --accent-secondary: #7c3aed;
    /* Violet 600 */
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar (Public) */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    color: var(--accent-primary) !important;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: opacity 0.3s ease, transform 0.1s;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

/* Forms */
.form-control {
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.form-control:focus {
    background: white;
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    background: white;
}

/* Hero Title */
.hero-title {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Progress Bars */
.progress {
    background-color: #e2e8f0;
}

/* ----------------------------- */
/* Modern Sidebar Styles         */
/* ----------------------------- */

#wrapper {
    overflow-x: hidden;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -18rem;
    transition: margin .3s ease-in-out;
    width: 18rem;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sidebar-wrapper .list-group {
    width: 18rem;
}

#page-content-wrapper {
    min-width: 100vw;
    transition: margin .3s ease-in-out;
}

body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #sidebar-wrapper {
        margin-left: -18rem;
    }

    #sidebarToggle {
        display: none;
    }
}

.list-group-item {
    border: none;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    margin-bottom: 0.5rem;
}

.list-group-item:hover {
    color: var(--accent-primary);
    background-color: rgba(2, 132, 199, 0.05);
    /* very light primary */
    transform: translateX(4px);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3);
}

.list-group-item.active:hover {
    color: white;
    /* Keep white on hover if active */
    transform: none;
    /* No movement if active */
}

/* Kanban Board Styles */
.kanban-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 1.5rem;
    min-height: calc(100vh - 200px);
}

.kanban-column {
    min-width: 300px;
    width: 300px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
}

.kanban-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: 700;
    color: var(--text-primary);
}

.kanban-cards {
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

.kanban-card {
    background: white !important;
    /* Solid bg for cards for better readability */
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

/* Custom scrollbar for kanban container */
.kanban-container::-webkit-scrollbar {
    height: 8px;
}

.kanban-container::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

/* === CLEAN LANDING PAGE STYLES === */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(102, 126, 234, 0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: #667eea;
    margin-bottom: 2rem;
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #475569;
    font-size: 1rem;
}

.hero-features .feature-item i {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-float {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    top: 10%;
    right: 15%;
    animation: float2 6s ease-in-out infinite;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation: float3 6s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 0;
}

.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.illustration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

.circle-1 {
    width: 150px;
    height: 150px;
    top: -25px;
    left: -25px;
    animation-delay: 0s;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: -15px;
    right: -15px;
    animation-delay: 1s;
}

.circle-3 {
    width: 75px;
    height: 75px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.illustration-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    z-index: 3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* How it works section */
.how-it-works-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.how-it-works {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.step p {
    color: #64748b;
    line-height: 1.6;
}

.step-connector {
    color: #cbd5e1;
    font-size: 2rem;
}

/* Business Types Section */
.business-types-section {
    padding: 5rem 0;
    background: white;
}

.business-types {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.business-type {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 300px;
    flex: 1;
    min-width: 250px;
}

.business-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.business-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.business-type h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.business-type p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.business-result {
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.result-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.result-text {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-feature i {
    color: #10b981;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Unit Economics Styles */
.channel-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
}

.channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.channel-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.channel-name i {
    color: #667eea;
    font-size: 1.2rem;
}

.channel-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-высокая {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-убыто {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.channel-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.metric-value.positive {
    color: #10b981;
}

.metric-value.negative {
    color: #ef4444;
}

.metric-value.warning {
    color: #f59e0b;
}

.channel-insights {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.insight-label {
    font-size: 0.875rem;
    color: #64748b;
}

.insight-value {
    font-weight: 600;
    color: #1e293b;
}

.channel-diagnosis {
    margin-top: 1rem;
}

.channel-diagnosis summary {
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.diagnosis-text {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
    white-space: pre-line;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }

    .floating-cards {
        display: none;
    }

    .hero-illustration {
        width: 150px;
        height: 150px;
    }

    .circle-1 {
        width: 120px;
        height: 120px;
        top: -20px;
        left: -20px;
    }

    .circle-2 {
        width: 80px;
        height: 80px;
        bottom: -12px;
        right: -12px;
    }

    .circle-3 {
        width: 60px;
        height: 60px;
    }

    .illustration-main {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .how-it-works {
        gap: 2rem;
    }

    .step {
        max-width: 200px;
    }

    .business-types {
        gap: 1.5rem;
    }

    .business-type {
        padding: 2rem;
        max-width: 100%;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .channel-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .channel-card {
        margin-bottom: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .dashboard-preview {
        margin: 2rem 0;
    }

    .preview-content {
        padding: 1.5rem;
    }

    .metric-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .process-title {
        font-size: 2rem;
    }

    .process-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .step-arrow {
        display: none;
    }

    .business-type-card {
        padding: 2rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}