/* Современное модальное окно деталей вывода */

.withdrawal-details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.withdrawal-details-modal-overlay.active {
    opacity: 1;
}

.withdrawal-details-modal-modern {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(25, 25, 40, 0.98) 100%);
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: slideUpDetails 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.withdrawal-details-modal-overlay.active .withdrawal-details-modal-modern {
    transform: translateY(0);
}

@keyframes slideUpDetails {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.withdrawal-details-modal-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0) 0%,
        rgba(102, 126, 234, 0.8) 50%,
        rgba(102, 126, 234, 0) 100%);
    animation: shimmerDetails 3s infinite;
}

@keyframes shimmerDetails {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Заголовок */
.withdrawal-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.withdrawal-details-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.withdrawal-details-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.withdrawal-details-main-icon {
    width: 28px;
    height: 28px;
    color: #667eea;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
    animation: pulseDetails 2s infinite;
    z-index: 1;
}

@keyframes pulseDetails {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.withdrawal-details-header-text h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.withdrawal-details-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.withdrawal-details-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(102, 126, 234, 0.8);
    font-weight: 500;
}

/* Секции в модальном окне */
.withdrawal-details-section {
    margin-bottom: 24px;
}

.withdrawal-details-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.modern-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-close-btn svg {
    width: 20px;
    height: 20px;
}

.modern-close-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.4);
    color: #ff3b30;
    transform: rotate(90deg);
}

/* Тело */
.withdrawal-details-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.withdrawal-details-body::-webkit-scrollbar {
    width: 6px;
}

.withdrawal-details-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 3px;
}

.withdrawal-details-body::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.withdrawal-details-body::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.withdrawal-details-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    padding: 20px;
}

.detail-row-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUpRow 0.5s ease both;
}

.detail-row-modern:last-child {
    border-bottom: none;
}

.detail-row-modern:nth-child(1) { animation-delay: 0.1s; }
.detail-row-modern:nth-child(2) { animation-delay: 0.15s; }
.detail-row-modern:nth-child(3) { animation-delay: 0.2s; }
.detail-row-modern:nth-child(4) { animation-delay: 0.25s; }
.detail-row-modern:nth-child(5) { animation-delay: 0.3s; }
.detail-row-modern:nth-child(6) { animation-delay: 0.35s; }
.detail-row-modern:nth-child(7) { animation-delay: 0.4s; }
.detail-row-modern:nth-child(8) { animation-delay: 0.45s; }
.detail-row-modern:nth-child(9) { animation-delay: 0.5s; }

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

.detail-label-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.detail-label-modern svg {
    width: 18px;
    height: 18px;
    color: #667eea;
    flex-shrink: 0;
}

.detail-value-modern {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
}

.detail-value-modern.amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.detail-value-modern.processed-value {
    color: #22c55e;
    font-weight: 700;
}

.detail-row-modern.refund-row .detail-value-modern {
    color: #22c55e;
    font-weight: 700;
}

.detail-row-modern.refund-row .detail-value-modern.refund-value::before {
    content: '+';
}

.detail-row-modern.admin-note-row .detail-value-modern {
    color: rgba(251, 191, 36, 0.9);
    font-weight: 500;
}

.status-badge-modern {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge-modern.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge-modern.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge-modern.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge-modern.status-partially_completed {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge-modern.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Модальное окно обработки вывода для админов */
.withdrawal-process-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.withdrawal-process-modal-overlay.active {
    opacity: 1;
}

.withdrawal-process-modal-modern {
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(25, 25, 40, 0.98) 100%);
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: slideUpDetails 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.withdrawal-process-modal-overlay.active .withdrawal-process-modal-modern {
    transform: translateY(0);
}

.withdrawal-process-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.withdrawal-process-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.withdrawal-process-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.withdrawal-process-main-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
    filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.4));
    z-index: 1;
}

.withdrawal-process-header-text h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.withdrawal-process-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(102, 126, 234, 0.8);
    font-weight: 500;
}

.withdrawal-process-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.withdrawal-process-body::-webkit-scrollbar {
    width: 6px;
}

.withdrawal-process-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 3px;
}

.withdrawal-process-body::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.withdrawal-process-body::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.withdrawal-process-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.withdrawal-process-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.modal-actions-modern {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.btn-process-modern {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-process-modern svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-process-completed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.btn-process-completed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.btn-process-partial {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.btn-process-partial:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.btn-process-processing {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-process-processing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-process-cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-process-cancelled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.btn-cancel-modern {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-modern svg {
    width: 18px;
    height: 18px;
}

.btn-cancel-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .withdrawal-details-modal-modern {
        width: 98%;
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .withdrawal-details-header {
        padding: 20px;
    }
    
    .withdrawal-details-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .withdrawal-details-header-text h2 {
        font-size: 20px;
    }
    
    .withdrawal-details-body {
        padding: 20px;
    }
    
    .detail-value-modern.amount-value {
        font-size: 18px;
    }
    
    .withdrawal-process-modal-modern {
        width: 98%;
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .withdrawal-process-header {
        padding: 20px;
    }
    
    .withdrawal-process-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .withdrawal-process-header-text h2 {
        font-size: 20px;
    }
    
    .withdrawal-process-body {
        padding: 20px;
    }
    
    .modal-actions-modern {
        flex-direction: column;
    }
    
    .btn-process-modern,
    .btn-cancel-modern {
        width: 100%;
    }
}

