.referral-container_b3 {
    background-color: #f8f9fd;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23beccf1' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 40px;
    margin-left: 260px; /* Space for your sidebar */
    min-height: 100vh;
    color: #333;
}

.referral-header_b3 {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.referral-header_b3 h1 {
    font-size: 28px;
    color: #1a2b6b;
    margin-bottom: 10px;
    font-weight: 700;
}

.referral-header_b3 p {
    color: #5f6a84;
    font-size: 16px;
}

/* Referral Code Section */
.referral-code-section_b3 {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.referral-code-container_b3 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.code-display_b3 {
    flex: 1;
    min-width: 240px;
}

.code-display_b3 h3 {
    color: #5f6a84;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.code-box_b3 {
    background: #f5f8ff;
    border: 2px dashed #7b93e0;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #1a2b6b;
    margin-bottom: 15px;
    letter-spacing: 1px;
    user-select: all;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-box_b3:hover {
    background: #eef2ff;
    transform: translateY(-2px);
}

.referral-link-container_b3 {
    flex: 2;
    min-width: 300px;
}

.referral-link-container_b3 h3 {
    color: #5f6a84;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.link-input-group_b3 {
    display: flex;
    position: relative;
}

.link-input-group_b3 input {
    flex: 1;
    padding: 16px 50px 16px 16px;
    border: 2px solid #e0e6f7;
    border-radius: 8px;
    font-size: 14px;
    color: #424770;
    outline: none;
    width: 100%;
    transition: all 0.2s ease;
}

.link-input-group_b3 input:focus {
    border-color: #7b93e0;
    box-shadow: 0 0 0 2px rgba(123, 147, 224, 0.2);
}

.qr-code-container_b3 {
    min-width: 180px;
    text-align: center;
}

.qr-code-container_b3 h3 {
    color: #5f6a84;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.qr-code_b3 {
    width: 140px;
    height: 140px;
    margin: 0 auto 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e6f7;
}

.qr-code-container_b3 p {
    font-size: 12px;
    color: #768396;
}

.copy-btn_b3 {
    background-color: #4059e2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.copy-btn_b3:hover {
    background-color: #3048cc;
    transform: translateY(-2px);
}

.link-input-group_b3 .copy-btn_b3 {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    border-radius: 6px;
    background-color: transparent;
    color: #4059e2;
}

.link-input-group_b3 .copy-btn_b3:hover {
    background-color: #f5f8ff;
}

/* Sharing Section */
.sharing-section_b3 {
    margin-bottom: 30px;
    animation: fadeInUp 0.9s ease-out;
}

.sharing-section_b3 h2 {
    font-size: 20px;
    color: #1a2b6b;
    margin-bottom: 15px;
    font-weight: 700;
}

.sharing-options_b3 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn_b3 {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    transition: all 0.3s ease;
}

.share-btn_b3:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.whatsapp_b3 {
    background-color: #25D366;
}

.facebook_b3 {
    background-color: #3b5998;
}

.twitter_b3 {
    background-color: #1DA1F2;
}

.email_b3 {
    background-color: #D44638;
}

.telegram_b3 {
    background-color: #0088cc;
}

/* Stats Section */
.stats-section_b3 {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.stats-section_b3 h2 {
    font-size: 20px;
    color: #1a2b6b;
    margin-bottom: 15px;
    font-weight: 700;
}

.stats-container_b3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card_b3 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card_b3:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon_b3 {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f5f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #4059e2;
}

.stat-details_b3 {
    flex: 1;
}

.stat-details_b3 h3 {
    font-size: 14px;
    color: #5f6a84;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value_b3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2b6b;
}

.conversion-bar_b3 {
    height: 10px;
    background: #f0f3fa;
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
}

.conversion-progress_b3 {
    height: 100%;
    background: linear-gradient(90deg, #4059e2, #7b93e0);
    border-radius: 5px;
    text-align: right;
    font-size: 10px;
    font-weight: bold;
    color: white;
    line-height: 10px;
    padding-right: 5px;
}

/* History Section */
.history-section_b3 {
    animation: fadeInUp 1.1s ease-out;
}

.history-section_b3 h2 {
    font-size: 20px;
    color: #1a2b6b;
    margin-bottom: 15px;
    font-weight: 700;
}

.history-filters_b3 {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-select_b3 {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e0e6f7;
    background: white;
    color: #5f6a84;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.table-container_b3 {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.referral-table_b3 {
    width: 100%;
    border-collapse: collapse;
}

.referral-table_b3 th, .referral-table_b3 td {
    padding: 15px 20px;
    text-align: left;
}

.referral-table_b3 th {
    background-color: #f8f9fd;
    color: #5f6a84;
    font-weight: 600;
    font-size: 14px;
}

.referral-table_b3 tr {
    border-bottom: 1px solid #f0f3fa;
    transition: background 0.2s ease;
}

.referral-table_b3 tr:last-child {
    border-bottom: none;
}

.referral-table_b3 tr:hover {
    background-color: #f9fafd;
}

.status-badge_b3 {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge_b3.mining_b3 {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge_b3.completed_b3 {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status-badge_b3.inactive_b3 {
    background-color: #fbe9e7;
    color: #d84315;
}

/* Toast notification */
.toast_b3 {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4059e2;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toast_b3.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .referral-container_b3 {
        padding: 30px 20px;
    }
    
    .referral-code-container_b3 {
        flex-direction: column;
    }
    
    .qr-code-container_b3 {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .sharing-options_b3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container_b3 {
        grid-template-columns: 1fr;
    }
    
    .referral-container_b3 {
        margin-left: 0;
        padding: 20px 15px;
    }
}