/* Golden Buy Button */
.btn-buy-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 50%, #f5af19 100%);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 175, 25, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-buy-gold:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 175, 25, 0.5);
}

.btn-buy-gold:active {
    transform: translateY(0);
}

.btn-buy-gold svg {
    width: 16px;
    height: 16px;
}

/* Free Badge */
.btn-free {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.btn-free svg {
    width: 14px;
    height: 14px;
}

/* Email Modal (step before payment) */
.mono-email-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    z-index: 99998 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mono-email-modal.active {
    display: flex !important;
}

.mono-email-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.mono-email-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: background 0.2s, color 0.2s;
}

.mono-email-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.mono-email-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.mono-email-modal-header h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #333;
}

.mono-modal-price {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono-modal-price span {
    font-size: 14px;
    font-weight: 400;
    -webkit-text-fill-color: #888;
}

.mono-buy-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mono-buy-form label {
    font-size: 14px;
    color: #555;
    margin-bottom: -10px;
}

.mono-buy-form .email-input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mono-buy-form .email-input:focus {
    border-color: #f5af19;
    box-shadow: 0 0 0 3px rgba(245, 175, 25, 0.15);
}

.mono-buy-form .email-input::placeholder {
    color: #aaa;
}

.mono-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(245, 175, 25, 0.4);
}

.mono-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 175, 25, 0.5);
}

.mono-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mono-submit-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.mono-modal-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 15px 0 0;
}

.mono-error-message {
    padding: 12px 15px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #c53030;
    font-size: 14px;
}

/* Payment Modal (Monobank iframe) */
.mono-payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mono-payment-modal.active {
    display: flex;
}

.mono-payment-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}

.mono-payment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.mono-payment-modal-close:hover {
    background: #e0e0e0;
}

.mono-payment-modal-close svg {
    width: 20px;
    height: 20px;
}

.mono-payment-frame {
    width: 100%;
    height: 620px;
    border: none;
    border-radius: 24px;
}

/* Waiting Content in Modal */
.mono-waiting-content {
    padding: 60px 30px;
    text-align: center;
}

.mono-waiting-content .waiting-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.mono-waiting-content h2 {
    margin: 0 0 15px;
    font-size: 22px;
    color: #333;
}

.mono-waiting-content p {
    margin: 0 0 25px;
    color: #666;
    line-height: 1.6;
}

.mono-waiting-content .btn-cancel-waiting {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.mono-waiting-content .btn-cancel-waiting:hover {
    background: #e0e0e0;
}

/* Success Content in Modal */
.mono-success-content {
    padding: 40px 30px;
    text-align: center;
}

.mono-success-content .success-icon {
    margin-bottom: 15px;
}

.mono-success-content h2 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.mono-success-content p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.6;
}

.mono-success-content .spam-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin: 20px 0;
    color: #856404;
    font-size: 14px;
}

.mono-success-content .spam-warning svg {
    flex-shrink: 0;
    color: #856404;
}

.mono-success-content .success-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.mono-success-content .btn-open-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: #6c5ce7;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mono-success-content .btn-open-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.mono-success-content .btn-close-success {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.mono-success-content .btn-close-success:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 480px) {
    .mono-email-modal-content {
        padding: 25px 20px;
    }

    .mono-email-modal-header h3 {
        font-size: 20px;
    }

    .mono-modal-price {
        font-size: 24px;
    }

    .mono-payment-modal-content {
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .mono-payment-frame {
        height: 100%;
        border-radius: 0;
    }
}
