﻿/* Creadia Affiliate System Frontend Styles */

.creadia-affiliate-dashboard {
    font-family: 'Inter' !important;
}

/* Manager dashboard wrapper matches affiliate layout */
.creadia-manager-dashboard {
    font-family: 'Inter' !important;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    /* padding-bottom: 20px; */
}

.affiliate-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.affiliate-info-inner {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: stretch;
    flex-wrap: wrap;
}

.affiliate-info-inner span {
    display: flex;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
    line-height: 1.5;
    padding: 10px !important;
    box-shadow: 2px 3px 8.5px 1px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    text-align: center;
}

.affiliate-code, .affiliate-conversions, .affiliate-clicks {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
}

.affiliate-approved {
    background: #E0FFEA;
}


.withdraw-header-btn {
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}
.withdraw-header-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.withdraw-header-btn:hover:not(:disabled) {
    background: #005a8c;
}

/* Keep withdrawal functionality intact but hide the header trigger for affiliate dashboard only. */
.creadia-affiliate-dashboard #creadia-open-withdrawal-header {
    display: none !important;
}

.recommendation-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.recommendation-header-btn:hover {
    background: #005a8c;
    color: #fff;
}

.status, .rank {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    /* text-transform: uppercase; */
}

.status-active { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-inactive { background: #f8d7da; color: #721c24; }
.status-validated { background: #d1ecf1; color: #0c5460; }
.status-rejected { background: #f8d7da; color: #721c24; }

.rank-regular { background: #e2e3e5; color: #383d41; }
.rank-gold { background: #F6BB06; color: #ffffff; }
.rank-diamond { background: #74b9ff; color: #ffffff; }

.dashboard-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
    /* border-bottom: 1px solid #e0e0e0; */
}

.dashboard-nav li {
    margin-right: 20px;
}

.dashboard-nav a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    /* color: #007cba; */
    border-bottom-color: #78A0FC;
}

.stats-grid, .stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Donut Chart */
.stat-chart-card {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.5);
}

@media (max-width: 768px) {
    .stat-chart-card {
        transform: scale(1.1);
    }
}

.creadia-donut {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 100%;
}

.creadia-donut .donut-sub:last-child {
    margin-top: 5px;
}

.creadia-donut .center {
    background: #ffffff;
    position: absolute;
    text-align: center;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 86px;
    height: 86px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.creadia-donut .center-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.creadia-donut .donut-main {
    font-size: 16px;
    font-weight: 800;
    color: #383d41;
    line-height: 1;
}

.creadia-donut .donut-sub {
    font-size: 10px !important;
    font-weight: 300 !important;
    color: #8e8e8e;
    text-transform: lowercase;
    line-height: 1.2;
    letter-spacing: -0.5px;
    /* margin-top: 3px; */
}

.creadia-donut .portion-block {
    border-radius: 50%;
    clip: rect(0px, 120px, 120px, 60px);
    height: 100%;
    position: absolute;
    width: 100%;
}

.creadia-donut .circle {
    border-radius: 50%;
    clip: rect(0px, 60px, 120px, 0px);
    height: 100%;
    position: absolute;
    width: 100%;
}

.stat-card, .summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 2px 3px 8.5px 1px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card h3, .summary-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333!important;
    text-transform: none;
    font-size: 22px !important;
}

.stat-number, .stat-value, .summary-card .amount {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

/* Label under the stat value in manager cards */
.stat-label {
    font-size: 14px;
    color: #333 !important;
    margin-top: 8px;
}

.pending-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.pending-notice h3 {
    margin: 0 0 10px 0;
    color: #856404;
}

.deals-table,
.commissions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

/* .deals-table thead,
.commissions-table thead {
    border-bottom: 3px solid #78A0FC;
    background: rgba(120, 160, 252, 0.20);
} */

.deals-table th,
.deals-table td,
.commissions-table th,
.commissions-table td {
    padding: 12px;
    text-align: left;
    /* border-bottom: 1px solid #e0e0e0; */
    color: #000;
}

.deals-table th,
.commissions-table th {
    border: 1px solid #78A0FC;
    border-bottom: 3px solid #78A0FC;
    background: rgba(120, 160, 252, 0.20);
}

.deals-table td, .deals-table th,
.commissions-table td, .commissions-table th {
    border: none;
    border-bottom: 1px solid #78A0FC;
}

.deals-table tr:last-child td, .commissions-table tr:last-child th {
    border-bottom: none;
}

/* Network Tree Table Styles */
.referral-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tree-guide {
    color: #78A0FC;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2em;
    user-select: none;
}

.network-tree-table tr[style*="font-size: 0.9em"] td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.network-tree-table tr:hover {
    background: rgba(120, 160, 252, 0.05);
}

.client-info strong {
    display: block;
    color: #000;
}

.client-info small {
    color: #666;
    font-size: 12px;
}

.commission-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* .summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
} */

/* .summary-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
} */

/* .summary-card .amount {
    font-size: 20px;
    font-weight: bold;
    color: #000;
} */

.commission-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.type-direct { background: #d1ecf1; color: #0c5460; }
.type-referral { background: #f0f4ff; color: #4c63d2; }

.network-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-item .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.stat-item .value {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.network-tree {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.network-level {
    list-style: none;
    padding: 0;
    margin: 0;
}

.network-item {
    margin: 10px 0;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
    color: #000;
}

.level-1 .network-item {
    border-left-color: #007cba;
}

.level-2 .network-item {
    border-left-color: #ffeaa7;
}

.level-3 .network-item {
    border-left-color: #74b9ff;
}

.referral-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    flex-direction: column;
}

.referral-info .name {
    font-weight: bold;
    color: #161515;
}

.referral-info .code {
    font-family: monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    color: #000;
}

.referral-info .deals {
    font-size: 12px;
    color: #333;
}

.referral-link-section {
    margin-bottom: 75px;
}

.referral-link-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.recommendation-section {
    margin-top: 50px;
    /* padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 2px 3px 8.5px 1px rgba(0, 0, 0, 0.25); */
}

.recommendation-section h3 {
    margin-bottom: 25px;
    font-size: 22px;
    color: #333 !important;
}

form#creadia-recommendation-form {
    max-width: 450px;
}

.creadia-form .form-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.creadia-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.creadia-form label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.creadia-form input, 
.creadia-form select {
    padding: 12px;
    border: 1px solid var(--blue-light, #78A0FC) !important;
    border-radius: 5px;
    background: #FFF !important;
    color: #000 !important;
    font-size: 14px;
    transition: border-color 0.2s;
    margin-bottom: 0 !important;
}

.creadia-form input:focus, 
.creadia-form select:focus {
    border-color: #78A0FC;
    outline: none;
}

.creadia-form .submit-btn {
    background: #78A0FC;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.creadia-form .submit-btn:hover {
    background: #5d8dfa;
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.form-message.info { background: #e7f0ff; color: #004085; }
.form-message.success { background: #d4edda; color: #155724; }
.form-message.error { background: #f8d7da; color: #721c24; }

.link-container {
    display: flex;
    gap: 10px;
}

.referral-link-input {
    background: #fff !important;
    color: #000 !important;
    flex: 1;
    padding: 12px;
    box-shadow: 2px 3px 8.5px 1px rgba(0, 0, 0, 0.25);
    border-radius: 20px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    font-family: monospace;
    margin-bottom: 0 !important;
}

.copy-btn {
    padding: 14px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 20px;
    margin-left: -20px;
    cursor: pointer;
    z-index: 9;
}

@media (max-width: 768px) {
    .copy-btn { 
        margin-left: 0;
    }
}

.copy-btn:hover {
    background: #005a87;
}

.social-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    min-width: 100px;
}

.share-btn.facebook { background: #3b5998; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.linkedin { background: #0077b5; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }
.share-btn.email { background: #666; color: white; }

.performance-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    color: #000;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.perf-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.perf-item .label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.perf-item .value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Registration Form */
.creadia-registration-form {
    /* max-width: 600px; */
    margin: 0 auto;
    /* padding: 30px; */
    background: #fff;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

.referral-notice {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    color: #0c5460;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    /* margin-bottom: 8px; */
    font-weight: bold;
    color: #000;
    line-height: 1 !important;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px !important;
    border: 1px solid #78A0FC !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    background: #fff !important;
    color: #000 !important;
    margin-bottom: 0 !important;
    height: 50px !important;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.submit-btn:hover {
    background: #005a87;
}

.creadia-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.creadia-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.creadia-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.creadia-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.creadia-login-notice {
    text-align: center;
    padding: 30px;
    color: #000;
    max-width: 600px;
    margin: auto;
}

.leads-table,
.calculator-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.leads-table th,
.leads-table td,
.calculator-table th,
.calculator-table td {
    padding: 12px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #78A0FC;
    color: #000;
}

.leads-table th,
.calculator-table th {
    border: 1px solid #78A0FC;
    border-bottom: 3px solid #78A0FC;
    background: rgba(120, 160, 252, 0.20);
    font-weight: bold;
}

.leads-table tr:last-child td,
.calculator-table tr:last-child td {
    border-bottom: none;
}

.contact-info {
    font-size: 12px;
    color: #000;
}

.contact-info div {
    margin: 2px 0;
}

.leads-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.promotion-tips {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.tips-list p {
    margin: 8px 0;
    font-size: 14px;
    color: #000;
}

.link-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dashboard-nav ul {
        flex-direction: column;
    }
    
    .dashboard-nav li {
        margin: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .commission-summary {
        grid-template-columns: 1fr;
    }
    
    .network-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-share {
        flex-direction: column;
    }
    
    .share-btn {
        min-width: auto;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .deals-table,
    .commissions-table {
        font-size: 14px;
    }
    
    .deals-table th,
    .deals-table td,
    .commissions-table th,
    .commissions-table td {
        padding: 8px 4px;
    }
}

/* QR Code Modal Styles */
.creadia-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.creadia-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

.creadia-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    padding: 20px;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    animation: modalFadeIn 0.3s ease-out;
}

.creadia-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.qr-code-container {
    text-align: center;
}

.qr-code-container img {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 10px;
    background: white;
}

.qr-description {
    margin: 16px 0;
    color: #666;
    font-size: 14px;
}

.qr-url-container {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    align-items: center;
}

.qr-url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: #f8f9fa;
    color: #333;
    font-family: monospace;
}

.qr-actions {
    margin-top: 20px;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.qr-btn {
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    margin-left: 3px;
    transition: all 0.2s ease;
}

.qr-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.text-center {
    text-align: center;
}

.error-message {
    padding: 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    text-align: center;
}

#qr-loading {
    padding: 40px 20px;
    color: #666;
}

/* Referral link container adjustments for QR buttons */
.referral-link-container,
.link-container {
    display: flex;
    /* gap: 8px; */
    align-items: center;
    margin: 8px 0;
    position: relative;
}

.referral-link-input {
    flex: 1;
}

/* Mobile responsiveness for QR modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-header {
        padding: 16px 20px 12px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .qr-url-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .qr-url-input {
        width: 100%;
    }
    
    .copy-btn,
    .qr-btn {
        width: 100%;
        justify-content: center;
    }
    
    .referral-link-container,
    .link-container {
        flex-wrap: wrap;
    }
    
    .referral-link-input {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Profile Page Layout */
.profile-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.profile-column {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .profile-column {
        flex: 0 0 100%;
    }
}

/* Profile Info Card Styles */
.profile-info-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
}

.status-summary {
    margin-bottom: 40px;
    text-align: center;
    padding-top: 10px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.status-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.status-indicator.status-active {
    background: #d4edda;
    color: #155724;
}

.status-indicator.status-pending,
.status-indicator.status-inactive,
.status-indicator.status-suspended {
    background: #fff3cd;
    color: #856404;
}

.rank-donut-section {
    text-align: center;
}

.profile-page .creadia-donut {
    margin: 0 auto;
    zoom: 1.75;
    /* width: 220px;
    height: 220px; */
}

.profile-page .donut-main {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.profile-page .donut-sub {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* margin-top: 5px; */
}

.profile-page .donut-sub-next {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.referrer-notice {
    margin-bottom: 20px;
    font-style: italic;
    color: #666;
}

/* Consultants Page Styles */
.consultant-permissions div {
    font-size: 14px;
    line-height: 1.6;
    color: #0F2844;
}

.add-consultant-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.add-consultant-section h3 {
    color: #0F2844 !important;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.consultant-form {
    max-width: 540px;
}

.consultant-form .form-row {
    margin-bottom: 20px;
}

.consultant-form .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #0F2844;
    font-size: 16px;
    font-weight: 400;
}

.consultant-form input[type="text"],
.consultant-form input[type="email"],
.consultant-form input[type="password"],
.consultant-form input[type="tel"] {
    width: 100%;
    height: 60px;
    padding: 0 16px;
    border: 1px solid #78A0FC !important;
    background: #fff !important;
    color: #000 !important;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.consultant-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consultant-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #0F2844;
    cursor: pointer;
}

.consultant-form .checkbox-group input[type="checkbox"] {
    width: 30px;
    height: 30px;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    cursor: pointer;
}

.consultant-form .submit-btn {
    /* height: 40px; */
    padding: 15px 30px;
    background: #78A0FC;
    color: white;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s ease;
}

.consultant-form .submit-btn:hover {
    background: #5a8def;
}

.consultant-form .form-message {
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.consultant-form .form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.consultant-form .form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.activate-consultant-btn {
    padding: 5px;
    background: #78A0FC;
    color: white;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.activate-consultant-btn:hover {
    background: #5a8def;
}

.activate-affiliate-btn {
    background: #78A0FC;
    color: white;
    padding: 5px;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.activate-affiliate-btn:hover {
    background: #5a8def;
}

.view-btn {
    padding: 5px;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    color: #0F2844;
    background: white;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 5px;
}

.view-btn:hover {
    background: rgba(120, 160, 252, 0.1);
}

/* Deals Page Styles */

.validate-deal-btn {
    background: #78A0FC;
    color: white;
    padding: 5px;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.validate-deal-btn:hover {
    background: #5a8def;
}

.status-validated {
    background: #A6F9C1;
    color: #0F2844;
}

.status-approved {
    background: #CDEBD6;
    color: #0F2844;
}

.status-paid {
    background: #28A745;
    color: white;
}

/* Status badges for manager dashboard */
.status-badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 16px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    display: inline-block;
}

.status-badge.status-active {
    background: #A6F9C1;
    color: #0F2844;
}

.status-badge.status-pending {
    background: #F9EEA6;
    color: #0F2844;
}

.mark-paid-btn {
    background: #78A0FC;
    color: white;
    padding: 5px;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mark-paid-btn:hover {
    background: #5a8def;
}

/* Overview page specific styles */
.stat-cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.monthly-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.monthly-stat-card {
    background: white;
    box-shadow: 2px 3px 8.5px 1px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 20px;
    /* height: 159px;
    width: 294px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: auto;
}

/* .monthly-stat-card-wide {
    width: 606px;
    gap: 5px;
} */

/* .monthly-stat-card-merged {
    width: 606px;
    gap: 5px;
} */

.merged-stats-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    flex-wrap: wrap;
    gap: 25px;
}

.merged-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.merged-inner-divider {
    width: 1px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 40px;
}

.merged-stat-label {
    color: #0F2844;
    font-size: 24px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
}

.merged-stat-value {
    color: #0F2844;
    font-size: 36px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
}

.monthly-stat-divider {
    width: 1px;
    height: 155px;
    background: #000;
    margin: 0 15px;
}

.monthly-stat-label {
    color: #0F2844;
    font-size: 32px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
}

.monthly-stat-label strong {
    font-weight: 600;
}

.monthly-stat-value {
    color: #0F2844;
    font-size: 48px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
}

.creadia-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .creadia-controls {
        flex-direction: column;
        /* align-items: stretch; */
    }
}

.creadia-search-box {
    position: relative;
    flex: 1;
    max-width: 540px;
}

.creadia-search-box input {
    width: 100%;
    height: 70px;
    padding: 0 50px 0 16px;
    background: white !important;
    border: 1px solid #78A0FC !important;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif !important;
    color: #0F2844 !important;
    margin-bottom: 0 !important;
}

.creadia-search-box input::placeholder {
    color: #b4b4b4 !important;
}

.creadia-search-box .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    z-index: 9;
}

.creadia-filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* .creadia-period-box,
.creadia-sort-box,
.creadia-filter-box {
    flex: auto;
    position: relative;
    height: 70px;
    padding: 0 16px;
    background: white;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #0F2844;
} */

/* Also ensure select inputs inside these boxes look correct if they are used */
.creadia-sort-box select,
.creadia-filter-box select {
    width: 100%;
    height: 100%;
    border: none !important;
    background: transparent !important;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 12px;
    color: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.creadia-period-box {
    width: 180px;
}

.creadia-sort-box,
.creadia-filter-box {
    width: 165px;
}

.creadia-period-box .dropdown-icon,
.creadia-sort-box .dropdown-icon,
.creadia-filter-box .dropdown-icon {
    font-size: 18px;
}

.section-title {
    color: #0F2844;
    font-size: 32px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    margin: 30px 0 20px 0;
}

.download-pdf-btn {
    padding: 15px 30px;
    background: #78A0FC;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    cursor: pointer;
    margin-top: 30px;
    transition: background 0.2s ease;
}

.download-pdf-btn:hover {
    background: #5a8def;
}

/* Manager Dashboard Table Styles */
.manager-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.manager-table thead {
    background: rgba(120, 160, 252, 0.20);
    border-bottom: 3px solid #78A0FC;
}

.manager-table th,
.manager-table td {
    padding: 12px;
    text-align: left;
    color: #0F2844;
    font-size: 16px;
    font-family: 'Fira Sans', sans-serif;
    border: none;
    border-bottom: 1px solid #78A0FC;
}

.manager-table th {
    font-size: 20px;
    font-weight: 600;
    padding: 10px 12px;
}

.manager-table tbody tr:last-child td {
    border-bottom: none;
}

.manager-table tbody tr:hover {
    background: rgba(120, 160, 252, 0.05);
}

/* Table cell styling for overview */
.manager-table .referral-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.manager-table .referral-info .email {
    color: #6c757d;
    font-size: 14px;
}

.manager-table .referral-info .phone {
    color: #6c757d;
    font-size: 14px;
}

.manager-table .amount {
    font-size: 20px;
    font-weight: 400;
    color: #0F2844;
}

/* Code and Rank badges */
.code-badge {
    padding: 5px 10px;
    background: #F0F0F4;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    color: #0F2844 !important;
    display: inline-block;
}

.rank-badge {
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    color: white;
    display: inline-block;
}

.rank-badge.rank-стандарт,
.rank-badge.rank-standard {
    background: #4D40B4;
}

.rank-badge.rank-златен,
.rank-badge.rank-gold {
    background: #F6BB06;
}

.rank-badge.rank-platinum,
.rank-badge.rank-платинен {
    background: #78A0FC;
}

.profile-page hr {
    margin: 20px 0;
}

.profile-page .password-reset-section #reset-link-message {
    margin-top: 10px;
}

.profile-page .form-actions {
    margin-top: 30px;
}

.table-container {
    overflow: auto;
}

/* Table pagination/footer links */
.table-footer-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #78A0FC;
    text-decoration: underline;
    font-size: 20px;
    font-weight: 400;
}

.table-footer-link:hover {
    color: #0F2844;
}

/* Nice Pagination Styles */
.creadia-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.pagination-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-links .page-numbers.current {
    background: #7b9dfc;
    border-color: #567be4;
    color: #fff;
    font-weight: bold;
}

.entry-content a.next.page-numbers, .entry-content a.prev.page-numbers {
    border: none;
}

.pagination-links .page-numbers:hover:not(.current):not(.dots) {
    background: #f0f0f1;
    border-color: #0073aa;
    color: #0073aa;
}

.pagination-links .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    color: #666;
}

@media (max-width: 600px) {
    .creadia-pagination {
        flex-direction: column;
        text-align: center;
    }
}

/* Profile View Styles */
.affiliate-profile-view .section-title {
    margin-bottom: 30px;
}

.profile-header-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.profile-header-info .meta-item strong {
    font-size: 20px;
    color: #0F2844;
}

.profile-header-info .meta-item small {
    font-size: 14px;
    color: #666;
}

.section-header-table {
    background: rgba(120, 160, 252, 0.20);
    border-bottom: 3px solid #78A0FC;
    padding: 12px 20px;
    font-weight: 700;
    color: #0F2844;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px 4px 0 0;
}

.view-section {
    margin-bottom: 40px;
}

/* Form Readonly Styles (Profile View) */
.creadia-form .form-group input[readonly] {
    background-color: transparent !important;
    border-color: #E2E8F0;
    cursor: default;
    font-weight: 600;
    color: #0F2844;
}

.creadia-form .form-group label {
    color: #000;
    font-weight: 700;
    font-size: 16px;
}

.fas {
    font-style: normal;
}

/* Choices.js Custom CSS Properties - Match Creadia Design */
@media (min-width: 640px) {    
.choices__list--dropdown .choices__item--selectable, .choices__list[aria-expanded] .choices__item--selectable {
        padding-right: 0px;
    }
}


.choices[data-type*=select-one]::after, .choices[data-type*=select-one].is-open::after {
    /* content: "\f0dc" !important; */
    font-family: 'Font Awesome 5 Free';
    border-style: none;
    border-color: unset;
    border-width: 0;
    margin-top: 0;
    margin-top: -10px;
    padding-right: 10px;
}

.creadia-sort-box .choices[data-type*=select-one]::after, .creadia-sort-box .choices[data-type*=select-one].is-open::after {
    content: "\f0dc" !important;
}

.creadia-filter-box .choices[data-type*=select-one]::after, .creadia-filter-box .choices[data-type*=select-one].is-open::after {
    content: "\f0b0" !important;
}

.choices__inner {
    border: 1px solid #78A0FC !important;
    background-color: #fff !important;
    color: #000 !important;
    min-height: 50px;
    padding: 10px 15px;
    box-sizing: border-box;
    height: 70px;
    display: flex;
    align-items: center;
}

/* Login and Register Form*/
form#creadia-affiliate-login-form label, form#affiliate-registration-form label {
    text-align: left;
    margin-bottom: 10px;
}

form#creadia-affiliate-login-form input, form#affiliate-registration-form input {
    background-color: #fff !important;
    border: 1px solid #78A0FC !important;
    color: #000 !important;
    box-sizing: border-box;
}

/* Overview Modal Control Button */
.overview-control-btn {
    border: 1px solid #78A0FC !important;
    background-color: #fff !important;
    color: #000 !important;
    min-height: 50px;
    padding: 10px 15px;
    box-sizing: border-box;
    height: 70px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.overview-control-btn:hover {
    background-color: rgba(120, 160, 252, 0.05) !important;
}

.overview-control-btn:active {
    background-color: rgba(120, 160, 252, 0.1) !important;
}

form#creadia-affiliate-login-form .form-group, form#affiliate-registration-form .form-group {
    margin-bottom: 15px;
}

p.creadia-reset-password {
    margin-top: 10px;
}

.form-group.form-group-checkbox {
    display: block !important;
}

@media (max-width: 600px) {
    .form-group.form-group-checkbox {
        display: flex !important;
        gap: 10px;
        align-items: center;
    }
}

.form-group.form-group-checkbox input, .form-group.form-group-checkbox label {
    display: inline-block !important;
    width: unset !important;
    height: unset !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
    margin-right: 0 !important;
}

.creadia-registration-form h2 {
    font-size: 26px !important;
    line-height: 1.25 !important;
}

/*upload contract in table*/
.contract-upload-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #eeeeee;
    padding: 3px;
}
form.contract-upload-form input[type="file"] {
    padding: 5px !important;
    font-size: 10px !important;
    background: inherit !important;
    color: inherit !important;
}
input[type="file"]::file-selector-button {
    background: #e0e0e0;
    border: 1px solid #b2b2b2;
    padding: 3px;
    border-radius: 5px;
}
form.contract-upload-form button {
    font-size: 11px;
    padding: 0 !important;
    border: 1px solid #78A0FC;
    border-radius: 5px;
    color: #0F2844 !important;
    background: white !important;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    justify-content: center;
}


/*add deal modal*/
        /* Modal Base Styles */
        .creadia-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .creadia-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
        }
        
        .creadia-modal-content.creadia-deal-modal {
            position: relative;
            background: white;
            padding: 50px !important;
            border-radius: 10px;
            box-shadow: 2px 3px 7.6px rgba(0, 0, 0, 0.25);
            max-width: 1321px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            z-index: 1;
        }
        
        .creadia-modal-close {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 40px;
            background: none;
            border: none;
            cursor: pointer;
            color: #666;
            line-height: 1;
        }
        
        .creadia-modal-close:hover {
            color: #000;
        }
        
        .modal-title {
            color: var(--blue-dark, #0F2844);
            font-size: 48px;
            font-family: 'Fira Sans', sans-serif;
            font-weight: 600;
            margin: 0 0 30px 0;
        }
        
        /* Grid Layout */
        .deal-form-grid {
            display: grid;
            grid-template-columns: 540px 540px;
            gap: 25px;
        }
        
        .form-column {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .form-column-left {
            grid-column: 1;
        }
        
        .form-column-right {
            grid-column: 2;
        }
        
        .form-submit {
            grid-column: 1;
            margin-top: 20px;
        }
        
        /* Form Groups */
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .form-group label {
            color: var(--Navigation-blue, #000A41);
            font-size: 16px;
            font-family: Inter, sans-serif;
            font-weight: 400;
        }
        
        .form-input {
            width: 100%;
            height: 70px;
            padding: 0 15px;
            background: white !important;
            color: #0F2844 !important;
            border-radius: 5px;
            border: 1px solid var(--blue-light, #78A0FC);
            font-size: 16px;
            font-family: Inter, sans-serif;
            box-sizing: border-box;
        }
        
        /* Deal Type Buttons */
        .deal-type-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 38px;
        }
        
        .deal-type-btn {
            height: 70px;
            padding: 0 15px;
            background: rgba(120, 160, 252, 0.05) !important;
            color: #000 !important;
            border-radius: 5px;
            border: 1px solid var(--blue-light, #78A0FC);
            color: var(--Navigation-blue, #000A41);
            font-size: 16px;
            font-family: Inter, sans-serif;
            font-weight: 400;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s;
        }
        
        .deal-type-btn svg {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
        }
        
        .deal-type-btn svg circle:last-child {
            display: none;
        }
        
        .deal-type-btn.active {
            background: rgba(120, 160, 252, 0.15);
        }
        
        .deal-type-btn.active svg circle:last-child {
            display: block;
        }
        
        .deal-type-btn:hover {
            background: rgba(120, 160, 252, 0.1);
        }
        
        /* Slider Group */
        .slider-group {
            gap: 15px;
        }
        
        .slider-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .slider-header label {
            color: var(--Background, #01082C);
            font-size: 16px;
            font-family: Inter, sans-serif;
            font-weight: 400;
        }
        
        .slider-display {
            padding: 10px 15px;
            background: white;
            border-radius: 30px;
            border: 1px solid var(--blue-light, #78A0FC);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .slider-display span:first-child {
            color: var(--blue-dark, #0F2844);
            font-size: 16px;
            font-family: Inter, sans-serif;
            font-weight: 400;
        }
        
        .slider-unit {
            color: var(--blue-light, #78A0FC);
            font-size: 16px;
            font-family: Inter, sans-serif;
            font-weight: 400;
        }
        
        .slider-input {
            width: 100%;
            height: 15px;
            background: #D9D9D9;
            border-radius: 7.5px;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            padding: 0 !important;
        }
        
        .slider-input::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: var(--blue-light, #78A0FC);
            cursor: pointer;
            border: 5px solid white;
            box-shadow: 0 0 0 5px var(--blue-light, #78A0FC);
        }
        
        .slider-input::-moz-range-thumb {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            background: var(--blue-light, #78A0FC);
            cursor: pointer;
            border: 5px solid white;
            box-shadow: 0 0 0 5px var(--blue-light, #78A0FC);
        }
        
        .slider-labels {
            display: flex;
            justify-content: space-between;
        }
        
        .slider-labels span:first-child {
            color: var(--Background, #01082C);
            font-size: 16px;
            font-family: Inter, sans-serif;
            font-weight: 400;
        }
        
        .slider-labels span:last-child {
            color: var(--Navigation-blue, #000A41);
            font-size: 16px;
            font-family: Inter, sans-serif;
            font-weight: 400;
        }
        
        /* Document Upload */
        .document-upload {
            width: 251px;
        }
        
        .file-input {
            display: none;
        }
        
        .file-label {
            height: 70px;
            padding: 0 15px;
            background: rgba(120, 160, 252, 0.05);
            border-radius: 5px;
            border: 1px solid var(--blue-light, #78A0FC);
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .file-label:hover {
            background: rgba(120, 160, 252, 0.1);
        }
        
        .file-label svg {
            width: 39px;
            height: 39px;
            flex-shrink: 0;
            color: var(--Navigation-blue, #000A41);
        }
        
        .file-label span {
            color: var(--Navigation-blue, #000A41);
            font-size: 16px;
            font-family: Inter, sans-serif;
            font-weight: 400;
        }
        
        /* Submit Button */
        .form-submit .submit-btn {
            width: 540px;
            padding: 15px;
            background: var(--blue-light, #78A0FC);
            border: none;
            border-radius: 5px;
            color: white;
            font-size: 20px;
            font-family: 'Fira Sans', sans-serif;
            font-weight: 400;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .form-submit .submit-btn:hover {
            background: #6590eb;
        }
        
        .form-message {
            margin-top: 15px;
            display: none;
            padding: 10px;
            border-radius: 5px;
        }
        
        .form-message.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .form-message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        /* Mobile Responsive */
        @media (max-width: 1200px) {
            .creadia-modal-content.creadia-deal-modal {
                padding: 40px;
            }
            
            .deal-form-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }
            
            .form-column-left,
            .form-column-right,
            .form-submit {
                grid-column: 1;
            }
            
            .document-upload {
                width: 100%;
            }
            
            .form-submit .submit-btn {
                width: 100%;
            }
            
            .modal-title {
                font-size: 32px;
            }
        }
        
        @media (max-width: 768px) {
            .creadia-modal-content.creadia-deal-modal {
                padding: 30px 20px;
                width: 95%;
            }
            
            .modal-title {
                font-size: 24px;
                margin-bottom: 20px;
            }
            
            .deal-type-buttons {
                grid-template-columns: 1fr;
                gap: 15px;
            }
        }

        .slider-display span, .slider-labels span, label.file-label span {
            padding: 0 !important;
            box-shadow: none;
        }

/* ============================================
   Documents Section (Affiliate Profile & Manager View)
   ============================================ */
    .documents-section {
        margin: 20px 0;
    }

    .documents-section h4 {
        font-size: 20px;
        font-weight: 700;
        color: #0F2844;
        margin-bottom: 15px;
    }

    .documents-list {
        border: 2px solid #78A0FC;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .documents-list .no-documents {
        padding: 20px;
        text-align: center;
        color: #666;
        margin: 0;
    }

    .document-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        border-bottom: 1px solid #78A0FC;
        transition: background 0.15s;
        margin-bottom: 10px;
    }

    .document-row:last-child {
        border-bottom: none;
    }

    .document-row:hover {
        background: rgba(120, 160, 252, 0.05);
    }

    .document-info {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .document-name {
        font-size: 16px;
        font-weight: 400;
        color: #0F2844;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .document-uploader {
        font-size: 13px;
        color: #888;
        flex-shrink: 0;
    }

    .document-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 15px;
    }

    .document-download-btn,
    .document-delete-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
        font-size: 14px;
        background: transparent;
        color: #78A0FC;
    }

    .document-delete-btn {
        background: none !important;
        color: red !important;
    }

    .document-download-btn:hover {
        background: rgba(120, 160, 252, 0.15);
        color: #5a85e0;
        text-decoration: none;
    }

    .document-delete-btn:hover {
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

    .upload-document-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #78A0FC !important;
        color: #fff !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 12px 24px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        cursor: pointer;
        transition: background 0.15s;
    }

    .upload-document-btn:hover {
        background: #5a85e0 !important;
    }

    .upload-document-btn i {
        font-size: 14px;
    }

    @media (max-width: 600px) {
        .document-row {
            padding: 12px 15px;
        }

        .document-name {
            font-size: 14px;
        }

        .upload-document-btn {
            padding: 10px 18px !important;
            font-size: 14px !important;
        }
    }