/* ========================================
   AFFILIATE SECTION - COMPACT 100VH DESIGN
   2 CARDS SIDE BY SIDE - MAXIMUM COMPRESSION
   ======================================== */

.affiliate-section {
    padding: 1.5rem 0 !important;
}

.affiliate-section .section-header {
    margin-bottom: 2rem;
}

.affiliate-section .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.affiliate-section .section-header p {
    font-size: 0.9rem;
}

.affiliate-dual-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Commission Block/Card - COMPACT */
.affiliate-commission-block {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.affiliate-commission-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.affiliate-commission-block:hover::before {
    left: 150%;
}

.affiliate-commission-block:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

/* Premium Block */
.premium-block {
    background: rgba(138, 116, 45, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.premium-block:hover {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.premium-badge-top {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

/* Commission Header - COMPACT */
.commission-header {
    margin-bottom: 1rem;
}

.commission-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.commission-badge.premium {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
}

.commission-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* Commission Levels Grid - 2x2 COMPACT */
.commission-levels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.level-box {
    background: rgba(26, 26, 26, 0.7);
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.level-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.level-box:hover::before {
    left: 100%;
}

.level-box:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
}

.level-tag {
    background: rgba(255, 215, 0, 0.15);
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.level-rate {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.level-rate.big {
    font-size: 2rem;
}

.level-text {
    font-size: 0.7rem;
    color: #999;
}

/* Total Box - Special Highlight */
.total-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.08) 100%);
    border-color: rgba(255, 215, 0, 0.5);
}

.premium-total {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 140, 0, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.7);
}

/* Commission Features Grid - 2x2 COMPACT */
.commission-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-mini {
    color: #CCC;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

/* Button Full Width */
.btn-full {
    width: 100%;
    margin-top: auto;
    padding: 0.8rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .affiliate-dual-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .affiliate-section {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
}

@media (max-width: 768px) {
    .affiliate-commission-block {
        padding: 1.2rem;
    }
    
    .commission-header h3 {
        font-size: 1.1rem;
    }
    
    .level-rate {
        font-size: 1.4rem;
    }
    
    .level-rate.big {
        font-size: 1.8rem;
    }
    
    .commission-levels-grid {
        grid-template-columns: 1fr;
    }
    
    .commission-features-grid {
        grid-template-columns: 1fr;
    }
}




/* Commission Header Base */
.commission-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.commission-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

/* Commission Icon Base */
.commission-icon {
    width: 34px;
    height: 34px;
    transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
    flex-shrink: 0;
}

/* Referral Header - Blue/Cyan Theme */
.referral-header .commission-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #22d3ee;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.referral-header .commission-icon {
    color: #06b6d4;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.referral-header h3::before {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.referral-header h3:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(14, 165, 233, 0.05));
}

.referral-header h3:hover .commission-icon {
    color: #22d3ee;
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.8));
}

.referral-header .commission-badge:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(14, 165, 233, 0.2));
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

/* Representative Header - Gold/Orange Theme */
.representative-header .commission-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 146, 60, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.representative-header .commission-icon {
    color: #f59e0b;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.representative-header h3::before {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.representative-header h3:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 146, 60, 0.05));
}

.representative-header h3:hover .commission-icon {
    color: #fbbf24;
    transform: scale(1.15) rotate(15deg);
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
}

.representative-header .commission-badge:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 146, 60, 0.2));
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Commission Badge Base */
.commission-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.commission-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.commission-badge:hover::before {
    left: 100%;
}

.commission-badge:hover {
    transform: scale(1.05);
}

/* Glow Effect for Heading */
.commission-header h3::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.commission-header h3:hover::before {
    opacity: 0.25;
}

/* Smooth Entrance Animations - No Vibration */
@keyframes smoothFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.commission-header {
    animation: smoothFadeIn 0.6s ease-out;
}

.commission-badge {
    animation: smoothFadeIn 0.6s ease-out 0.15s backwards;
}

.commission-header h3 {
    animation: smoothFadeIn 0.6s ease-out 0.3s backwards;
}

.commission-icon {
    animation: iconFadeIn 0.5s ease-out 0.5s backwards;
}

/* Subtle Floating Effect - No Vibration */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.commission-badge {
    animation: gentleFloat 4s ease-in-out infinite;
}

/* Prevent Icon Disappearing */
.commission-icon {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Smooth Icon Glow Pulse */
@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 12px currentColor);
    }
}

.referral-header .commission-icon {
    animation: iconGlow 3s ease-in-out infinite;
}

.representative-header .commission-icon {
    animation: iconGlow 3s ease-in-out infinite 0.5s;
}

/* Remove Vibration on Hover */
.commission-header h3:hover .commission-icon {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .commission-icon {
        width: 28px;
        height: 28px;
    }
    
    .commission-header h3 {
        font-size: 1.3rem;
        padding: 0.75rem 1rem;
    }
    
    .commission-badge {
        padding: 0.4rem 1.2rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .commission-icon {
        width: 24px;
        height: 24px;
    }
    
    .commission-header h3 {
        font-size: 1.1rem;
        gap: 8px;
    }
    
    .commission-badge {
        padding: 0.35rem 1rem;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
}

/* Prevent Layout Shift */
.commission-header h3 {
    min-height: 50px;
    align-items: center;
}

/* Smooth Transitions Only */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

