/* Modern Payments Section */

/* Main Section Title */
.section-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.section-main-title i {
    color: #8D3FF2;
    font-size: 28px;
}

.history-section {
    margin-bottom: 32px;
    padding: 0 28px; /* Match section-content padding */
}

/* Header */
.payments-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 50%, #6D28D9 100%);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.25);
    position: relative;
    overflow: hidden;
}

.payments-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.payments-header .header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.payments-header .header-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.payments-header .header-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Payment Steps */
.payment-steps {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.step-card {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid #e9d5ff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8D3FF2 0%, #7C3AED 100%);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.2);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.step-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.step-icon {
    font-size: 32px;
    color: #e9d5ff;
}

.step-divider {
    font-size: 24px;
    color: #8D3FF2;
}

/* Section Card */
.payment-section-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 24px;
    border: 2px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-section-card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.1);
}

.payment-section-card .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-bottom: 2px solid #e9d5ff;
}

.payment-section-card .section-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.3);
}

.payment-section-card .section-title h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.payment-section-card .section-title p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.payment-section-card .section-content {
    padding: 28px;
}

/* Subsection Title */
.subsection-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.subsection-title i {
    color: #8D3FF2;
    font-size: 20px;
}

/* Payment Inputs */
.payment-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.payment-input,
.payment-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.3s ease;
    background: #ffffff;
}

.payment-input:focus,
.payment-select:focus {
    outline: none;
    border-color: #8D3FF2;
    box-shadow: 0 0 0 3px rgba(141, 63, 242, 0.1);
}

.payment-input::placeholder {
    color: #9ca3af;
}

/* Earnings Section */
.earnings-section {
    margin-bottom: 32px;
    padding: 0 28px; /* Match section-content padding */
}

/* Earnings Cards */
.earnings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.earning-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.earning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color) 0%, var(--card-color-dark) 100%);
}

.earning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--card-color);
}

.earning-card.total {
    --card-color: #10b981;
    --card-color-dark: #059669;
}

.earning-card.remaining {
    --card-color: #8D3FF2;
    --card-color-dark: #7C3AED;
}

.earning-card.withdrawn {
    --card-color: #f59e0b;
    --card-color-dark: #d97706;
}

.earning-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.earning-card.total .earning-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.earning-card.remaining .earning-icon {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7C3AED;
}

.earning-card.withdrawn .earning-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.earning-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earning-amount {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* History Table */
.history-table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.history-table table {
    width: 100%;
    margin: 0;
}

.history-table thead {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.history-table th {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    text-align: left;
    border-bottom: 2px solid #e9d5ff;
}

.history-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-table tbody tr:hover {
    background: #faf5ff;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Info Box */
.payment-info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    margin-top: 20px;
}

.payment-info-box i {
    font-size: 24px;
    color: #3b82f6;
    flex-shrink: 0;
}

.payment-info-box strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.payment-info-box p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .payment-steps {
        flex-direction: column;
    }

    .step-divider {
        transform: rotate(90deg);
    }

    .earnings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .payments-header {
        padding: 24px;
    }

    .payments-header .header-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .payments-header .header-content h3 {
        font-size: 24px;
    }

    .step-card {
        padding: 20px;
    }

    .payment-section-card .section-content {
        padding: 24px;
    }

    .earnings-section,
    .history-section {
        padding: 0 24px;
    }
}

@media (max-width: 576px) {
    .payments-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .payments-header .header-content h3 {
        font-size: 22px;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-icon {
        display: none;
    }

    .payment-section-card .section-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .payment-section-card .section-content {
        padding: 20px;
    }

    .earnings-section,
    .history-section {
        padding: 0 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-section-card,
.earning-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.earning-card:nth-child(1) { animation-delay: 0.1s; }
.earning-card:nth-child(2) { animation-delay: 0.2s; }
.earning-card:nth-child(3) { animation-delay: 0.3s; }
