/* ═══════════════════════════════════════════════════════════════
   СТРАНИЦА БОНУСОВ - Современный дизайн с табами
   ═══════════════════════════════════════════════════════════════ */

.bonuses-page {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(15, 15, 25, 1) 100%);
    padding: 30px 20px;
}

.bonuses-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Табы навигации */
.bonuses-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.bonuses-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: tabsSweep 3s infinite;
}

@keyframes tabsSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bonus-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bonus-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.bonus-tab:hover::before {
    left: 100%;
}

.bonus-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.bonus-tab.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(236, 72, 153, 0.3));
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.bonus-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #ec4899 100%);
    border-radius: 0 0 12px 12px;
    animation: tabUnderline 2s infinite;
}

@keyframes tabUnderline {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.bonus-tab .tab-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.bonus-tab:hover .tab-icon {
    transform: scale(1.1);
}

.bonus-tab.active .tab-icon {
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.8));
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Контент табов */
.bonuses-content {
    position: relative;
}

.bonus-tab-content {
    display: none;
    animation: tabFadeIn 0.4s ease;
}

.bonus-tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .bonuses-tabs {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .bonus-tab {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .bonus-tab .tab-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .bonuses-page {
        padding: 20px 15px;
    }
    
    .bonus-tab {
        padding: 12px 16px;
        font-size: 13px;
        gap: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   РЕФЕРАЛЬНАЯ СИСТЕМА - Современный стильный дизайн
   ═══════════════════════════════════════════════════════════════ */

.referral-container {
    padding: 20px 0;
}

.referral-header {
    margin-bottom: 30px;
}

.referral-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.referral-title svg {
    width: 32px;
    height: 32px;
    color: #667eea;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

/* Статистика рефералов */
.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.referral-stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.referral-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.referral-stat-card:hover::before {
    left: 100%;
}

.referral-stat-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
}

.referral-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.referral-stat-card .stat-icon svg {
    width: 28px;
    height: 28px;
    color: #667eea;
}

.referral-stat-card .stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.referral-stat-card .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.referral-stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Блок реферального кода */
.referral-code-section {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(15, 15, 25, 0.9));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.referral-code-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    animation: codeSectionShine 3s infinite;
}

@keyframes codeSectionShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.referral-code-header {
    margin-bottom: 20px;
}

.referral-code-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.referral-code-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.referral-codes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.referral-code-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-code-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.referral-code-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.referral-code-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.referral-code-display {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.referral-code-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    animation: codePulse 2s infinite;
}

@keyframes codePulse {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.btn-copy-referral {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea, #ec4899);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-copy-referral svg {
    width: 18px;
    height: 18px;
}

.btn-copy-referral:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

/* Инфо секция */
.referral-info-section {
    margin-bottom: 30px;
}

.referral-info-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.referral-info-toggle .info-icon {
    width: 18px;
    height: 18px;
}

.referral-info-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.referral-info-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 25px;
    animation: infoFadeIn 0.3s ease;
}

@keyframes infoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Список рефералов */
.referral-list-section {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(15, 15, 25, 0.9));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 30px;
}

.referral-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.referral-list-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.referral-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.referral-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.referral-empty svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.referral-empty p {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.referral-empty span {
    font-size: 14px;
}

.referral-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.referral-item:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
}

.referral-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.referral-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.referral-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.referral-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.referral-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.referral-item-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.referral-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 1;
}

.referral-item-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.referral-item-status.status-completed {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(46, 213, 115, 0.1));
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.referral-item-status.status-pending {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.1));
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: #ffb800;
}

.referral-item-status-icon {
    font-size: 14px;
}

.referral-item-status-text {
    font-size: 11px;
}

.referral-item-progress-bar {
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.referral-item-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #ec4899);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.referral-item-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.referral-item-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.referral-item-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.referral-item-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .referral-stats {
        grid-template-columns: 1fr;
    }
    
    .referral-codes-container {
        gap: 15px;
    }
    
    .referral-code-box {
        flex-direction: column;
    }
    
    .btn-copy-referral {
        width: 100%;
        justify-content: center;
    }
    
    .referral-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .referral-item-left {
        width: 100%;
    }
    
    .referral-item-right {
        width: 100%;
        align-items: flex-start;
    }
    
    .referral-item-stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .referral-title {
        font-size: 24px;
    }
    
    .referral-code-section {
        padding: 20px;
    }
    
    .referral-list-section {
        padding: 20px;
    }
}

