/*affiliate page*/
#affiliateProgramme {
    width: 100%;
    background-color: var(--bb-tertiary);
    color: var(--bb-text-main);
    min-height: 100vh;
}

.programme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--bb-tertiary);
    border-bottom: 1px solid var(--bb-border-main);
    position: sticky;
    top: 0;
    z-index: 100;
}

.programme-header .text {
    font-size: 16px;
    font-weight: 600;
    color: var(--bb-text-main);
}

.programme-header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(42, 41, 41, 0.3);
    color: var(--bb-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.programme-header .icon:hover {
    background-color: rgba(250, 150, 2, 0.16);
    color: var(--bb-primary);
}

.programme-header .icon i {
    font-size: 18px;
}

.affiliate-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.affiliate_tab {
    overflow: hidden;
    background-color: rgba(42, 41, 41, 0.16);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
    padding: 5px;
    border-bottom: 1px solid var(--bb-border-main);
}

.affiliate_tab .tablinks {
    flex: 1 1 0%;
    padding: 12px 8px;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--bb-text-main);
    opacity: 0.7;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.affiliate_tab .tablinks:hover {
    opacity: 1;
    background-color: rgba(250, 150, 2, 0.12);
}

.affiliate_tab .tablinks.active {
    background-color: var(--bb-primary);
    color: var(--bb-tertiary);
    opacity: 1;
}

.affiliate-content {
    width: 100%;
    padding: 20px;
    background-color: var(--bb-tertiary);
}

.affiliate_tabcontent {
    width: 100%;
    animation: fadeIn 0.3s ease;
}

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

.content-wrap {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .programme-header {
        padding: 12px 15px;
    }

    .programme-header .text {
        font-size: 14px;
    }

    .affiliate-content {
        padding: 15px;
    }

    .affiliate_tab .tablinks {
        font-size: 12px;
        padding: 10px 5px;
    }
}


/*affiliate dashboard*/

.affiliate-dashboard {
    width: 100%;
}

.content-card {
    background-color: var(--bb-card-bg, var(--bb-tertiary));
    border: 1px solid var(--bb-border-main);
    border-radius: 7px;
    padding: 20px;
    margin-bottom: 20px;
    color: var(--bb-text-main);
}

.content-card h3,
.content-card h4 {
    color: var(--bb-text-main);
    font-weight: 600;
    margin-bottom: 15px;
}

.content-card h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-card h4 {
    font-size: 16px;
}

.content-card p {
    color: var(--bb-text-main);
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.5;
}

.join-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--bb-text-main);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group .required {
    color: #dc3545;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--bb-border-main);
    border-radius: 5px;
    background-color: rgba(42, 41, 41, 0.14);
    color: var(--bb-text-main);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--bb-primary);
    background-color: rgba(250, 150, 2, 0.12);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: var(--bb-text-main);
    opacity: 0.5;
}

.form-help {
    margin-top: 6px;
    font-size: 12px;
    color: var(--bb-text-main);
    opacity: 0.6;
    margin-bottom: 0;
}

.content-card .bi-info-circle-fill,
.content-card .bi-question-circle-fill {
    color: var(--bb-primary);
    font-size: 16px;
    cursor: help;
}

.details-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.card-wrap {
    text-align: center;
    padding: 15px;
    background-color: rgba(42, 41, 41, 0.12);
    border: 1px solid var(--bb-border-main);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.card-wrap:hover {
    border-color: var(--bb-primary);
    background-color: rgba(250, 150, 2, 0.1);
}

.card-wrap h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--bb-primary);
}

.card-wrap .text {
    font-size: 14px;
    color: var(--bb-text-main);
    opacity: 0.7;
}

.commission-crown {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bb-border-main);
}

.commission {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--bb-primary);
}

.commission .bi-trophy-fill {
    color: #ffc107;
}

.commission .text {
    color: var(--bb-text-main);
}

.levels {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--bb-text-main);
    opacity: 0.8;
}

.transfer_to-Wallet {
    margin-top: 20px;
}

.transfer_to-Wallet p {
    font-size: 12px;
    color: var(--bb-text-main);
    opacity: 0.6;
    margin-top: 10px;
}

.btn {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--bb-primary);
    color: var(--bb-tertiary);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn:disabled {
    background-color: rgba(42, 41, 41, 0.5);
    color: rgba(255, 255, 255, 0.55);
    cursor: not-allowed;
    opacity: 0.6;
}

.social-media {
    width: 100%;
}

.social-media h4 {
    margin-bottom: 20px;
    color: var(--bb-text-main);
}

.social-media-icon-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
    justify-content: center;
}

.smd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.smd:hover {
    transform: scale(1.05);
    border-color: rgba(250, 150, 2, 0.35);
}

.smd i {
    font-size: 28px;
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smd p {
    font-size: 12px;
    margin: 0;
    color: var(--bb-text-main);
    opacity: 0.8;
}

.copy-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--bb-border-main);
}

.copy-label {
    margin-bottom: 10px;
    color: var(--bb-text-main);
    opacity: 0.8;
    font-size: 14px;
}

.copy-text {
    display: flex;
    gap: 10px;
}

.copy-text input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--bb-border-main);
    border-radius: 5px;
    background-color: rgba(42, 41, 41, 0.14);
    color: var(--bb-text-main);
    font-size: 14px;
    font-weight: 600;
}

.copy-text input:focus {
    outline: none;
    border-color: var(--bb-primary);
}

.copy-text button {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--bb-primary);
    border: 1px solid var(--bb-border-main);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.copy-text button:hover {
    background-color: rgba(250, 150, 2, 0.12);
    border-color: var(--bb-primary);
}

.affiliate-rules {
    width: 100%;
}

.affiliate-rules h3 {
    margin-bottom: 15px;
}

.affiliate-rules h6 {
    color: var(--bb-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.affiliate-rules p {
    margin-bottom: 15px;
}

.affiliate-rules ul {
    margin-top: 15px;
    padding-left: 20px;
    list-style: disc;
}

.affiliate-rules li {
    margin-bottom: 10px;
    color: var(--bb-text-main);
    opacity: 0.8;
    line-height: 1.6;
}

.affiliate-rules li span {
    color: #dc3545;
    font-weight: 600;
}

/*affiliate payments*/

.affiliate-payments {
    width: 100%;
}

.content-card {
    background-color: var(--bb-card-bg, var(--bb-tertiary));
    border: 1px solid var(--bb-border-main);
    border-radius: 7px;
    padding: 20px;
    color: var(--bb-text-main);
}

.content-card h4 {
    color: var(--bb-text-main);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--bb-text-main);
    opacity: 0.7;
}

.loading-state p,
.empty-state p {
    margin-top: 10px;
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.styled-table thead {
    background-color: rgba(42, 41, 41, 0.16);
    border-bottom: 2px solid var(--bb-border-main);
}

.styled-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--bb-text-main);
    font-size: 14px;
    border-bottom: 2px solid var(--bb-border-main);
}

.styled-table td {
    padding: 12px;
    border-bottom: 1px solid var(--bb-border-main);
    color: var(--bb-text-main);
    opacity: 0.9;
    font-size: 14px;
}

.styled-table tbody tr {
    transition: background-color 0.2s ease;
}

.styled-table tbody tr:hover {
    background-color: rgba(250, 150, 2, 0.1);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.35);
}

.status-pending {
    /* background-color: rgba(250, 150, 2, 0.18); */
    color: #ffc107;
    /* border: 1px solid rgba(250, 150, 2, 0.32); */
}

.status-onhold {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
}

.pagination button {
    padding: 8px 16px;
    background-color: var(--bb-primary);
    color: var(--bb-tertiary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    filter: brightness(1.06);
}

.pagination button:disabled {
    background-color: rgba(42, 41, 41, 0.5);
    color: rgba(255, 255, 255, 0.55);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination span {
    color: var(--bb-text-main);
    opacity: 0.8;
    font-size: 14px;
}

/*affiliate referrals*/
.affiliate-referrals {
    width: 100%;
}

.content-card {
    background-color: var(--bb-card-bg, var(--bb-tertiary));
    border: 1px solid var(--bb-border-main);
    border-radius: 7px;
    padding: 20px;
    color: var(--bb-text-main);
}

.content-card h4 {
    color: var(--bb-text-main);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--bb-text-main);
    opacity: 0.7;
}

.loading-state p,
.empty-state p {
    margin-top: 10px;
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.styled-table thead {
    background-color: rgba(42, 41, 41, 0.16);
    border-bottom: 2px solid var(--bb-border-main);
}

.styled-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--bb-text-main);
    font-size: 14px;
    border-bottom: 2px solid var(--bb-border-main);
}

.styled-table td {
    padding: 12px;
    border-bottom: 1px solid var(--bb-border-main);
    color: var(--bb-text-main);
    opacity: 0.9;
    font-size: 14px;
}

.styled-table tbody tr {
    transition: background-color 0.2s ease;
}

.styled-table tbody tr:hover {
    background-color: rgba(250, 150, 2, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
}

.pagination button {
    padding: 8px 16px;
    background-color: var(--bb-primary);
    color: var(--bb-tertiary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    filter: brightness(1.06);
}

.pagination button:disabled {
    background-color: rgba(42, 41, 41, 0.5);
    color: rgba(255, 255, 255, 0.55);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination span {
    color: var(--bb-text-main);
    opacity: 0.8;
    font-size: 14px;
}