/* Investment Modal Styles */
.investment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    backdrop-filter: blur(10px);
}

.investment-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.investment-modal-content {
    background: linear-gradient(135deg, var(--panel), #0a142f);
    border-radius: 20px;
    width: 95%;
    max-width: 600px;
    height: 70vh;
    max-height: 600px;
    border: 1px solid rgba(255,200,120,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.investment-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.investment-modal-title {
    font-size: 1.8rem;
    color: var(--gold-1);
    font-weight: 700;
}

.investment-modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.investment-modal-close:hover {
    color: var(--gold-1);
    background: rgba(255,255,255,0.1);
}

.investment-modal-body {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Investment Calculator Styles */
.investment-calculator {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
}

.calculator-title {
    color: var(--gold-1);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.calculator-subtitle {
    color: var(--muted);
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.amount-text {
    color: var(--muted);
    font-size: 0.9rem;
}

.payment-note {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
    background: rgba(77, 255, 145, 0.1);
    border: 1px solid rgba(77, 255, 145, 0.3);
    border-radius: 8px;
    line-height: 1.4;
}

.calculator-subtitle {
    color: var(--muted);
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.investment-slider-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.slider-container {
    width: 100%;
    max-width: 500px;
}

.investment-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.investment-slider:hover {
    background: rgba(255,255,255,0.15);
}

.investment-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    cursor: pointer;
    border: 3px solid var(--bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.investment-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 184, 77, 0.4);
}

.investment-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    cursor: pointer;
    border: 3px solid var(--bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.investment-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 184, 77, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.8rem;
}

.amount-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.amount-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.amount-input-container:focus-within {
    border-color: var(--gold-1);
    box-shadow: 0 0 0 3px rgba(255, 216, 107, 0.1);
}

.amount-input {
    background: none;
    border: none;
    color: var(--gold-1);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    width: 150px;
    outline: none;
    font-family: 'Courier New', monospace;
}

.amount-input::placeholder {
    color: rgba(255, 216, 107, 0.5);
}

.currency-label {
    color: var(--muted);
    font-size: 1.2rem;
    font-weight: 600;
}

 
/* Payment Summary Styles */
.payment-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
    margin-top: auto;
}

.payment-title {
    color: var(--gold-1);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.summary-item.total {
    background: linear-gradient(135deg, rgba(255,216,107,0.1), rgba(255,184,77,0.05));
    border-color: var(--gold-1);
}

.summary-item.total:hover {
    background: linear-gradient(135deg, rgba(255,216,107,0.15), rgba(255,184,77,0.1));
    box-shadow: 0 5px 15px rgba(255, 184, 77, 0.2);
}

.summary-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 700;
    font-size: 1rem;
}

.summary-item.amount .summary-value {
    color: var(--gold-1);
}

.summary-item.fee .summary-value {
    color: var(--neon);
}

.summary-item.duration .summary-value {
    color: var(--success);
}

.summary-item.total .summary-value {
    color: var(--gold-2);
    font-size: 1.1rem;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pay-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 200px;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: var(--bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pay-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 184, 77, 0.4);
}

.pay-button:active {
    transform: translateY(-1px);
}

.pay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pay-button:hover::before {
    left: 100%;
}

.payment-note {
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
    background: rgba(77, 255, 145, 0.1);
    border: 1px solid rgba(77, 255, 145, 0.3);
    border-radius: 8px;
    line-height: 1.4;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .investment-modal-content {
        width: 98%;
        height: 80vh;
        max-height: 500px;
    }

    .investment-modal-body {
        padding: 20px;
        gap: 20px;
    }

    .investment-calculator,
    .payment-summary {
        padding: 20px;
    }

    .calculator-title {
        font-size: 1.1rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .amount-input {
        font-size: 1.5rem;
        width: 120px;
    }

    .pay-button {
        padding: 12px 30px;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .investment-modal-header {
        padding: 20px;
    }

    .investment-modal-title {
        font-size: 1.5rem;
    }

    .investment-calculator,
    .payment-summary {
        padding: 15px;
    }

    .amount-input-container {
        padding: 5px 10px;
    }

    .amount-input {
        font-size: 1.3rem;
        width: 100px;
    }

    .summary-item {
        padding: 10px 12px;
    }

    .summary-label {
        font-size: 0.8rem;
    }

    .summary-value {
        font-size: 0.9rem;
    }

    .payment-note {
        font-size: 0.8rem;
        padding: 8px;
    }

    .pay-button {
        padding: 10px 25px;
        font-size: 0.9rem;
        min-width: 160px;
    }
}

@media (max-width: 360px) {
    .investment-modal-content {
        height: 85vh;
    }

    .investment-modal-body {
        padding: 15px;
        gap: 15px;
    }

    .amount-input {
        font-size: 1.2rem;
        width: 80px;
    }

    .currency-label {
        font-size: 1rem;
    }
}
/* استایل‌های سیستم پرداخت با تم رنگی برنامه */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.payment-modal {
    background: var(--panel, #081022);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 216, 107, 0.1);
    color: var(--muted, #9fb8d6);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 216, 107, 0.1);
    background: linear-gradient(135deg, rgba(255, 216, 107, 0.05) 0%, rgba(255, 184, 77, 0.05) 100%);
    border-radius: 12px 12px 0 0;
}

.payment-modal-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold-1, #ffd86b) 0%, var(--gold-2, #ffb84d) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-modal-close {
    background: rgba(255, 216, 107, 0.1);
    border: 1px solid rgba(255, 216, 107, 0.2);
    font-size: 20px;
    color: var(--gold-1, #ffd86b);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.payment-modal-close:hover {
    background: rgba(255, 216, 107, 0.2);
    border-color: var(--gold-1, #ffd86b);
    transform: scale(1.1);
}

.payment-modal-body {
    padding: 25px;
}

.payment-info-section,
.wallet-section,
.qr-section,
.transaction-section,
.confirm-section {
    margin-bottom: 30px;
}

.section-title {
    margin: 0 0 18px 0;
    font-size: 1.1rem;
    color: var(--gold-1, #ffd86b);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 216, 107, 0.1);
    padding-bottom: 8px;
}

.payment-details-grid {
    background: rgba(5, 6, 10, 0.5);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 216, 107, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(159, 184, 214, 0.1);
}

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

.detail-label {
    color: var(--muted, #9fb8d6);
    font-weight: 500;
    font-size: 0.95rem;
}

.detail-value {
    color: var(--gold-1, #ffd86b);
    font-weight: 600;
    font-size: 1rem;
}

.address-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}

.wallet-address {
    flex: 1;
    background: rgba(5, 6, 10, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 216, 107, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--gold-1, #ffd86b);
    font-weight: 500;
}

.copy-btn {
    background: linear-gradient(135deg, var(--gold-1, #ffd86b) 0%, var(--gold-2, #ffb84d) 100%);
    color: #05060a;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 100px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 216, 107, 0.3);
}

.wallet-note,
.qr-note,
.form-note {
    font-size: 0.85rem;
    color: var(--muted, #9fb8d6);
    margin-top: 10px;
    line-height: 1.5;
    background: rgba(5, 6, 10, 0.3);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--gold-1, #ffd86b);
}

.qr-container {
    text-align: center;
}

.qr-code {
    background: rgba(5, 6, 10, 0.5);
    border: 1px solid rgba(255, 216, 107, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.qr-code div {
    width: 200px;
    height: 200px;
    background: rgba(255, 216, 107, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(255, 216, 107, 0.1);
    border-radius: 8px;
    color: var(--muted, #9fb8d6);
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.transaction-input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 216, 107, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background: rgba(5, 6, 10, 0.5);
    color: var(--muted, #9fb8d6);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.transaction-input:focus {
    outline: none;
    border-color: var(--gold-1, #ffd86b);
    box-shadow: 0 0 0 2px rgba(255, 216, 107, 0.1);
}

.transaction-input::placeholder {
    color: rgba(159, 184, 214, 0.5);
}

.confirm-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold-1, #ffd86b) 0%, var(--gold-2, #ffb84d) 100%);
    color: #05060a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 216, 107, 0.4);
}

.confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* نوار وضعیت پرداخت */
.payment-status-bar {
    background: rgba(255, 216, 107, 0.05);
    border: 1px solid rgba(255, 216, 107, 0.2);
    border-radius: 8px;
    padding: 18px;
    margin: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    backdrop-filter: blur(10px);
}

.payment-status-bar.pending {
    background: rgba(255, 216, 107, 0.05);
    border-color: rgba(255, 216, 107, 0.3);
}

.payment-status-bar.approved {
    background: rgba(32, 201, 151, 0.05);
    border-color: rgba(32, 201, 151, 0.3);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.status-icon {
    font-size: 1.8rem;
    color: var(--gold-1, #ffd86b);
}

.status-text {
    flex: 1;
}

.status-main-text {
    font-weight: 600;
    color: var(--gold-1, #ffd86b);
    margin-bottom: 6px;
    font-size: 1rem;
}

.status-details {
    font-size: 0.9rem;
    color: var(--muted, #9fb8d6);
    opacity: 0.8;
}

.status-details-btn {
    background: rgba(255, 216, 107, 0.1);
    border: 1px solid rgba(255, 216, 107, 0.2);
    font-size: 1.3rem;
    color: var(--gold-1, #ffd86b);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-details-btn:hover {
    background: rgba(255, 216, 107, 0.2);
    border-color: var(--gold-1, #ffd86b);
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* اسکرول بار سفارشی */
.payment-modal::-webkit-scrollbar {
    width: 6px;
}

.payment-modal::-webkit-scrollbar-track {
    background: rgba(5, 6, 10, 0.5);
    border-radius: 3px;
}

.payment-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gold-1, #ffd86b) 0%, var(--gold-2, #ffb84d) 100%);
    border-radius: 3px;
}

.payment-modal::-webkit-scrollbar-thumb:hover {
    background: var(--gold-2, #ffb84d);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .payment-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .payment-modal-header {
        padding: 20px;
    }
    
    .payment-modal-body {
        padding: 20px;
    }
    
    .address-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        margin-top: 12px;
        width: 100%;
    }
    
    
    .status-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .qr-code div {
        width: 180px;
        height: 180px;
        font-size: 12px;
    }
}

/* انیمیشن‌های ظریف */
.payment-modal {
    animation: modalAppear 0.4s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* افکت‌های hover برای المان‌ها */
.detail-row:hover {
    background: rgba(255, 216, 107, 0.02);
    border-radius: 6px;
    margin: 0 -10px;
    padding: 12px 10px;
}

.wallet-address:hover {
    border-color: rgba(255, 216, 107, 0.3);
    background: rgba(255, 216, 107, 0.03);
}
/* نوار وضعیت پرداخت جمع و جور */
.payment-status-bar {
    background: rgba(255, 216, 107, 0.05);
    border: 1px solid rgba(255, 216, 107, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.payment-status-bar.pending {
    background: rgba(255, 216, 107, 0.05);
    border-color: rgba(255, 216, 107, 0.3);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.status-icon {
    font-size: 1.2rem;
    color: var(--gold-1, #ffd86b);
    min-width: 20px;
}

.status-text {
    flex: 1;
}

.status-main-text {
    font-weight: 600;
    color: var(--gold-1, #ffd86b);
    font-size: 0.9rem;
    margin: 0;
}

.status-details-btn {
    background: rgba(255, 216, 107, 0.1);
    border: 1px solid rgba(255, 216, 107, 0.2);
    font-size: 1rem;
    color: var(--gold-1, #ffd86b);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-details-btn:hover {
    background: rgba(255, 216, 107, 0.2);
    border-color: var(--gold-1, #ffd86b);
    transform: scale(1.05);
}

/* مدال جزئیات پرداخت */
.payment-details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.payment-details-modal {
    background: var(--panel, #081022);
    border-radius: 12px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 216, 107, 0.1);
    color: var(--muted, #9fb8d6);
    animation: modalAppear 0.3s ease-out;
}

.payment-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 216, 107, 0.1);
    background: linear-gradient(135deg, rgba(255, 216, 107, 0.05) 0%, rgba(255, 184, 77, 0.05) 100%);
    border-radius: 12px 12px 0 0;
}

.payment-details-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold-1, #ffd86b) 0%, var(--gold-2, #ffb84d) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-details-close {
    background: rgba(255, 216, 107, 0.1);
    border: 1px solid rgba(255, 216, 107, 0.2);
    font-size: 18px;
    color: var(--gold-1, #ffd86b);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.payment-details-close:hover {
    background: rgba(255, 216, 107, 0.2);
    border-color: var(--gold-1, #ffd86b);
}

.payment-details-body {
    padding: 20px;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(159, 184, 214, 0.1);
}

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

.detail-item-label {
    color: var(--muted, #9fb8d6);
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-item-value {
    color: var(--gold-1, #ffd86b);
    font-weight: 600;
    font-size: 0.95rem;
}

.status-badge {
    background: rgba(255, 216, 107, 0.1);
    color: var(--gold-1, #ffd86b);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 216, 107, 0.2);
}

.payment-note {
    background: rgba(5, 6, 10, 0.3);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--gold-1, #ffd86b);
    margin-top: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted, #9fb8d6);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ریسپانسیو */
@media (max-width: 768px) {
    .payment-status-bar {
        margin: 10px;
        max-width: none;
    }
    
    .payment-details-modal {
        margin: 10px;
    }
    
    .status-main-text {
        font-size: 0.85rem;
    }
}
.transaction-error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 10, 0.85); /* --bg با transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.transaction-error-modal {
    background: var(--panel, #081022); /* استفاده از --panel */
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 184, 77, 0.1); /* --gold-2 با opacity کم */
}

.error-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(159, 184, 214, 0.1); /* --muted با opacity */
}

.error-modal-title {
    margin: 0;
    color: var(--gold-1, #ffd86b); /* استفاده از --gold-1 */
    font-size: 1.5rem;
    font-weight: 600;
}

.error-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted, #9fb8d6); /* استفاده از --muted */
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.error-modal-close:hover {
    color: var(--gold-2, #ffb84d); /* --gold-2 در hover */
    background: rgba(255, 184, 77, 0.1);
}

.error-modal-body {
    padding: 20px;
}

.error-message {
    margin-bottom: 20px;
    color: #fff; /* متن سفید برای کنتراست بهتر */
    line-height: 1.6;
    font-size: 1.05rem;
}

.error-issues-list {
    margin: 15px 0;
    padding-left: 20px;
    color: var(--muted, #9fb8d6); /* --muted برای متن ثانویه */
}

.error-issue-item {
    margin-bottom: 8px;
    line-height: 1.5;
    position: relative;
}

.error-issue-item::before {
    content: "•";
    color: var(--gold-2, #ffb84d); /* --gold-2 برای bullet points */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.error-link-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(5, 6, 10, 0.3); /* --bg با opacity */
    border-radius: 8px;
    border: 1px solid rgba(159, 184, 214, 0.1); /* --muted border */
}

.error-link-label {
    font-weight: bold;
    color: var(--gold-1, #ffd86b); /* --gold-1 برای label */
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-link-value {
    word-break: break-all;
    margin-top: 5px;
    color: var(--muted, #9fb8d6); /* --muted برای لینک */
    font-size: 0.9rem;
    font-family: monospace;
    padding: 8px;
    background: rgba(5, 6, 10, 0.5); /* --bg با opacity بیشتر */
    border-radius: 4px;
    border: 1px solid rgba(159, 184, 214, 0.05);
}

.error-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.edit-link-btn, .cancel-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-link-btn {
    background: linear-gradient(135deg, var(--gold-1, #ffd86b), var(--gold-2, #ffb84d));
    color: #05060a; /* متن تیره روی طلایی */
    border: 1px solid transparent;
}

.edit-link-btn:hover {
    background: linear-gradient(135deg, var(--gold-2, #ffb84d), #ff9c2e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 77, 0.3);
}

.edit-link-btn:active {
    transform: translateY(0);
}

.cancel-btn {
    background: rgba(159, 184, 214, 0.1); /* --muted با opacity کم */
    color: var(--muted, #9fb8d6);
    border: 1px solid rgba(159, 184, 214, 0.2);
}

.cancel-btn:hover {
    background: rgba(159, 184, 214, 0.2);
    color: #fff;
    border-color: rgba(159, 184, 214, 0.3);
}

/* استایل برای حالت dark mode سازگار */
@media (prefers-color-scheme: dark) {
    .transaction-error-modal {
        background: var(--panel, #081022);
    }
    
    .error-link-section {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* انیمیشن برای نمایش مدال */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transaction-error-modal {
    animation: modalFadeIn 0.3s ease-out;
}

/* اسکرول بار استایل */
.transaction-error-modal::-webkit-scrollbar {
    width: 8px;
}

.transaction-error-modal::-webkit-scrollbar-track {
    background: rgba(5, 6, 10, 0.3); /* --bg */
    border-radius: 4px;
}

.transaction-error-modal::-webkit-scrollbar-thumb {
    background: var(--gold-2, #ffb84d); /* --gold-2 */
    border-radius: 4px;
}

.transaction-error-modal::-webkit-scrollbar-thumb:hover {
    background: var(--gold-1, #ffd86b); /* --gold-1 */
}