/* Commission Section Specific Styles */
.commission-section {
    position: relative;
    padding: 40px 0;
    /* Reduced from 80px */
    overflow: hidden;
    background-color: #ffffff;

    /* Local Variables */
    --comm-primary: #6366f1;
    --comm-secondary: #8b5cf6;
    --comm-accent: #10b981;
    --comm-gold: #f59e0b;
    --comm-dark: #0f172a;
    --comm-light: #ffffff;
    --comm-gray: #e2e8f0;
    --comm-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #10b981);
    --comm-gold-gradient: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
}

/* Layout for children now that container is removed */
.commission-header,
.daily-earnings-block,
.shared-rewards-block {
    width: 90%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;

    /* Initial state for scroll animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1), transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.commission-header.visible,
.daily-earnings-block.visible,
.shared-rewards-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.commission-header {
    text-align: center;
    margin-bottom: 60px;
}

.commission-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    /* Matched to pricing-header */
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;

    /* Matching gradient */
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    line-height: 1.1;
    display: inline-block;
    position: relative;
}

.commission-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 120px;
    height: 4px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    border-radius: 2px;
}

.commission-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Daily Earnings Section */
.daily-earnings-block {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px 50px;
    /* Reduced top padding from 50px */
    margin-bottom: 40px;
    /* Reduced from 80px */
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2px;
    /* Reduced from 15px */
}

.block-icon {
    width: 60px;
    height: 60px;
    background: var(--comm-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.block-title h3 {
    font-size: 2rem;
    background: var(--comm-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.block-description {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 900px;
}

.comm-highlight {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 100%);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--comm-primary);
}

/* Stats Cards */
.comm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.comm-stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--comm-gray);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.comm-stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--comm-primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.comm-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--comm-gradient);
}

.comm-stat-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--comm-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.comm-stat-label {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 600;
}

.comm-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: #64748b;
    /* Default neutral color */
    transition: all 0.3s ease;
}

/* Status Colors */
.comm-stat-change.stat-up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    /* Green */
}

.comm-stat-change.stat-down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    /* Red */
}

/* Shared Rewards Section */
.shared-rewards-block {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px 50px;
    /* Reduced top padding from 50px */
    margin-bottom: 40px;
    /* Reduced from 80px */
    border: 1px solid rgba(245, 158, 11, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.shared-rewards-block .block-icon {
    background: var(--comm-gold-gradient);
}

.shared-rewards-block .block-title h3 {
    background: var(--comm-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Distribution Chart */
.distribution-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin: 50px 0;
    align-items: center;
}

.chart-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
    max-width: 500px;
    /* Constrain chart size */
}

.distribution-list {
    flex: 1;
    min-width: 300px;
}

.distribution-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    /* Reduced from 15px 20px */
    margin-bottom: 8px;
    /* Reduced from 12px */
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--comm-gray);
    transition: all 0.3s ease;
}

.distribution-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: white;
}

.distribution-item.community {
    border-left: 4px solid var(--comm-primary);
}

.distribution-item.ecosystem {
    border-left: 4px solid var(--comm-secondary);
}

.distribution-item.investors {
    border-left: 4px solid var(--comm-accent);
}

.distribution-item.partners {
    border-left: 4px solid var(--comm-gold);
}

.distribution-item.team {
    border-left: 4px solid #ef4444;
}

.distribution-item.advisors {
    border-left: 4px solid #8b5cf6;
}

.distribution-name {
    font-weight: 600;
    font-size: 0.9rem;
    /* Reduced from 1rem */
    color: var(--comm-dark);
}

.distribution-percentage {
    font-size: 1.1rem;
    /* Reduced from 1.4rem */
    font-weight: 800;
    color: var(--comm-dark);
    font-family: 'Outfit', sans-serif;
}

/* Qualification Section */
.qualification-block {
    background: white;
    border-radius: 20px;
    padding: 30px 40px;
    /* Reduced from 40px */
    margin-top: 30px;
    /* Reduced from 50px */
    border: 1px solid var(--comm-gray);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.qualification-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    /* Reduced from 30px */
    background: var(--comm-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.criteria-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    padding: 30px 25px;
    /* Fixed from 2px */
    text-align: center;
    border: 1px solid var(--comm-gray);
    transition: all 0.4s ease;
}

.criteria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: var(--comm-primary);
}

.criteria-icon {
    width: 70px;
    height: 70px;
    background: var(--comm-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.criteria-card:nth-child(2) .criteria-icon {
    background: var(--comm-gold-gradient);
}

.criteria-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--comm-dark);
    font-weight: 700;
}

.criteria-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .distribution-layout {
        flex-direction: column;
    }

    .chart-wrapper,
    .distribution-list {
        width: 100%;
    }

    .commission-header h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .commission-header h2 {
        font-size: 2.2rem;
    }

    .block-title h3 {
        font-size: 1.5rem;
    }

    .comm-stat-value {
        font-size: 2.5rem;
    }

    .daily-earnings-block,
    .shared-rewards-block {
        padding: 30px 20px;
    }

    .qualification-block {
        padding: 30px 15px;
        /* Reduced side padding */
    }

    .criteria-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: 20px;
    }

    .criteria-card {
        padding: 30px 20px;
        /* Better internal spacing */
    }
}