/**
 * Neo Coins Payment System Styles
 */

/* ============================================
   PAYMENT MODAL
   ============================================ */

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.payment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neo-payment-overlay-bg, rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(4px);
}

.payment-modal-content {
    position: relative;
    background: var(--neo-payment-bg, #ffffff);
    border-radius: 16px;
    border: 1px solid var(--neo-payment-border, #e5e7eb);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

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

.payment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--neo-payment-border, #e5e7eb);
    background: var(--neo-payment-close-bg, #f0f0f1);
    color: var(--neo-payment-close-text, #111827);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.payment-modal-close:hover {
    background: var(--neo-payment-close-hover-bg, #ef4444);
    color: var(--neo-payment-header-text, #ffffff);
    transform: rotate(90deg);
}

.payment-modal-header {
    background: var(--neo-payment-header-bg, #7c3aed);
    color: var(--neo-payment-header-text, #ffffff);
    padding: 30px;
    border-radius: 16px 16px 0 0;
}

.payment-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.payment-modal-body {
    padding: 30px;
    color: var(--neo-payment-body-text, #111827);
}

.payment-feature-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--neo-payment-border, #e5e7eb);
}

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

.feature-detail .label {
    font-weight: 600;
    color: #6b7280;
}

.feature-detail .value {
    font-weight: 700;
    color: #111827;
}

.feature-detail .value.price {
    color: #10b981;
    font-size: 20px;
}

/* Duration Selector */
.duration-selector {
    margin: 20px 0;
}

.duration-selector h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.duration-option {
    position: relative;
    cursor: pointer;
    padding: 15px;
    border: 2px solid var(--neo-payment-border, #e5e7eb);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    background: white;
}

.duration-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.duration-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.duration-label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    margin-bottom: 5px;
}

.duration-price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 3px;
}

.duration-perday {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 5px;
}

.discount-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 5px;
}

.payment-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.payment-info-box h3 {
    margin: 0 0 15px 0;
    color: #0369a1;
    font-size: 16px;
}

.payment-info-box ol {
    margin: 0;
    padding-left: 20px;
}

.payment-info-box li {
    margin: 8px 0;
    color: #075985;
    line-height: 1.6;
}

.payment-crypto-info {
    margin: 20px 0;
}

.payment-crypto-info p {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.crypto-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crypto-badge {
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.payment-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.payment-security-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.payment-security-note p {
    margin: 5px 0;
    color: #166534;
    font-size: 14px;
}

.payment-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--neo-payment-border, #e5e7eb);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-confirm {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: var(--neo-payment-secondary-btn-bg, #e5e7eb);
    color: var(--neo-payment-secondary-btn-text, #1f2937);
}

.btn-cancel:hover {
    background: var(--neo-payment-secondary-btn-hover-bg, #d1d5db);
}

.btn-confirm {
    background: var(--neo-payment-primary-btn-bg, #7c3aed);
    color: var(--neo-payment-primary-btn-text, #ffffff);
}

.btn-confirm:hover {
    background: var(--neo-payment-primary-btn-hover-bg, #6d28d9);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-confirm:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Feature Cards */
.available-features {
    margin: 30px 0;
}

.available-features h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #111827;
}

.feature-purchase-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.feature-purchase-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.feature-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 28px;
}

.feature-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.feature-price {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.feature-description {
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-benefits {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feature-benefits strong {
    display: block;
    margin-bottom: 10px;
    color: #374151;
}

.feature-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.feature-benefits li {
    margin: 6px 0;
    color: #6b7280;
    line-height: 1.5;
}

.btn-purchase-feature {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-purchase-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-purchase-feature:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.purchase-history {
    margin: 20px 0;
}

.purchase-history h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #111827;
}

.purchase-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.purchase-history-table thead {
    background: #f9fafb;
}

.purchase-history-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.purchase-history-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

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

.purchase-history-table tr:hover {
    background: #f9fafb;
}

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

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.status-expired {
    background: #f3f4f6;
    color: #6b7280;
}

@media (max-width: 768px) {
    .payment-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .payment-modal-header,
    .payment-modal-body {
        padding: 20px;
    }
    
    .duration-options {
        grid-template-columns: 1fr;
    }
    
    .payment-modal-footer {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-confirm {
        width: 100%;
    }
}