/* ==================== PAYMENT MODAL ==================== */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-modal.show {
    opacity: 1;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff, #00f5a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-content > p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 16px;
    width: 100%;
    text-align: left;
}

[dir="rtl"] .payment-btn {
    text-align: right;
}

.payment-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00f5a0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 245, 160, 0.3),
                0 0 40px rgba(0, 245, 160, 0.2);
}

.payment-btn .icon {
    font-size: 32px;
    flex-shrink: 0;
}

.payment-btn .title {
    flex: 1;
    font-weight: 600;
}

.payment-btn .price {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #00f5a0, #00d9f5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== NOTIFICATIONS ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[dir="rtl"] .notification {
    right: auto;
    left: 20px;
    transform: translateX(-400px);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-color: #00f5a0;
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.2), rgba(0, 217, 245, 0.15));
    box-shadow: 0 8px 32px rgba(0, 245, 160, 0.4);
}

.notification.error {
    border-color: #ff4757;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 107, 107, 0.15));
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.4);
}

.notification.warning {
    border-color: #ffa502;
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.2), rgba(255, 184, 0, 0.15));
    box-shadow: 0 8px 32px rgba(255, 165, 2, 0.4);
}

.notification.info {
    border-color: #00d9f5;
    background: linear-gradient(135deg, rgba(0, 217, 245, 0.2), rgba(112, 0, 255, 0.15));
    box-shadow: 0 8px 32px rgba(0, 217, 245, 0.4);
}

/* ==================== SUBSCRIPTION INFO ==================== */
.subscription-info {
    margin-top: 30px;
    padding: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

.subscription-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00f5a0, #00d9f5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subscription-info p {
    font-size: 16px;
    opacity: 0.9;
    margin: 8px 0;
}

/* ==================== WALLET CONNECTED STATE ==================== */
.wallet-btn.connected {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4),
                0 0 20px rgba(76, 175, 80, 0.3);
}

.wallet-btn.connected:hover {
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5),
                0 0 30px rgba(76, 175, 80, 0.4);
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #00f5a0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .payment-btn {
        padding: 15px;
        font-size: 14px;
    }

    .payment-btn .icon {
        font-size: 28px;
    }

    .payment-btn .price {
        font-size: 16px;
    }

    .notification {
        right: 10px;
        min-width: 280px;
        max-width: calc(100% - 20px);
    }

    [dir="rtl"] .notification {
        left: 10px;
        right: auto;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== TRANSACTION STATUS ==================== */
.tx-status {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tx-status .status-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.tx-status .status-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tx-status .tx-hash {
    font-size: 12px;
    opacity: 0.7;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.tx-status .view-on-explorer {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(0, 245, 160, 0.1);
    border: 1px solid rgba(0, 245, 160, 0.3);
    border-radius: 8px;
    color: #00f5a0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.tx-status .view-on-explorer:hover {
    background: rgba(0, 245, 160, 0.2);
    border-color: #00f5a0;
    transform: translateY(-2px);
}
