/* ============================================
   PAYOUT LEADERBOARD — Purple Gradient Theme
   ============================================ */

.payout-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- STATS BANNER ---- */

.payout-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.payout-stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payout-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.payout-stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- TOP FIRMS ---- */

.payout-section-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.payout-section-title i {
    color: #f59e0b;
    margin-right: 6px;
}

.payout-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 32px;
}

.payout-top-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, background 0.2s;
}

.payout-top-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.payout-top-rank {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
    min-width: 24px;
}

.payout-top-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.payout-top-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.payout-top-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payout-top-amount {
    font-size: 14px;
    font-weight: 700;
    color: #41b618;
}

.payout-top-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

/* ---- FILTERS ---- */

.payout-filters {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payout-filter-label {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.payout-filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    appearance: auto;
    cursor: pointer;
}

.payout-filter-select option {
    background: #3a3070;
    color: #fff;
}

.payout-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #41b618 0%, #2d8a10 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.payout-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 182, 24, 0.3);
    color: #fff;
}

/* ---- LEADERBOARD LIST ---- */

.payout-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payout-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

.payout-card:hover {
    background: rgba(255, 255, 255, 0.11);
}

.payout-card-rank {
    min-width: 40px;
    text-align: center;
}

.payout-rank-num {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}

.payout-medal {
    font-size: 24px;
    line-height: 1;
}

.payout-card-firm {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.payout-firm-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

.payout-firm-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.payout-firm-name:hover {
    color: #7A95F8;
}

.payout-trader {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.payout-card-details {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.payout-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.payout-card-amount {
    text-align: right;
    min-width: 100px;
}

.payout-amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #41b618;
}

.payout-date {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.payout-card-badge {
    min-width: 90px;
    text-align: center;
}

.payout-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #41b618;
    background: rgba(65, 182, 24, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
}

.payout-verified-badge i {
    font-size: 14px;
}

/* ---- EMPTY STATE ---- */

.payout-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-bottom: 28px;
}

.payout-empty i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    display: block;
}

.payout-empty h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.payout-empty p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ---- CTA SECTION ---- */

.payout-cta-section {
    text-align: center;
    padding: 40px 20px;
    margin: 32px 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payout-cta-section h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.payout-cta-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.payout-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7A95F8 0%, #6453CA 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.payout-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 83, 202, 0.35);
    color: #fff;
}

/* ---- SUBMIT FORM ---- */

.payout-form-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 32px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.payout-form-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.payout-form-input,
.payout-form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.payout-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.payout-form-input:focus,
.payout-form-select:focus {
    border-color: #7A95F8;
}

.payout-form-select option {
    background: #3a3070;
    color: #fff;
}

.payout-form-error {
    font-size: 12px;
    color: #f87171;
    margin-top: 4px;
}

.payout-form-info {
    background: rgba(122, 149, 248, 0.1);
    border: 1px solid rgba(122, 149, 248, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.payout-form-info i {
    font-size: 18px;
    color: #7A95F8;
    flex-shrink: 0;
    margin-top: 1px;
}

.payout-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #41b618 0%, #2d8a10 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.payout-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 182, 24, 0.3);
}

/* ---- FILE UPLOAD ---- */

.payout-upload-zone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.payout-upload-zone:hover,
.payout-upload-zone.dragover {
    border-color: #7A95F8;
    background: rgba(122, 149, 248, 0.06);
}

.payout-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.payout-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.payout-upload-content i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.3);
}

.payout-upload-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.payout-upload-content span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

.payout-upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.payout-upload-preview img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 8px;
}

.payout-upload-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 767px) {
    .payout-stats-row {
        flex-direction: column;
        gap: 8px;
    }

    .payout-stat-card {
        padding: 14px;
    }

    .payout-stat-value {
        font-size: 20px;
    }

    .payout-card {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .payout-card-rank {
        min-width: 32px;
    }

    .payout-card-firm {
        flex: unset;
        width: calc(100% - 50px);
    }

    .payout-card-details {
        width: 100%;
        padding-left: 50px;
    }

    .payout-card-amount {
        margin-left: auto;
    }

    .payout-card-badge {
        min-width: auto;
    }

    .payout-top-grid {
        grid-template-columns: 1fr 1fr;
    }

    .payout-form-card {
        padding: 20px;
    }

    .payout-upload-zone {
        padding: 20px;
    }
}

@media (max-width: 375px) {
    .payout-top-grid {
        grid-template-columns: 1fr;
    }
}
