.right-ranking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.right-ranking-popup {
    width: 640px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.right-popup-btn {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.right-popup-btn:hover {
    background-color: #f1f3f5;
}

.ym-recharge-modal {
    max-width: 520px;
}

.ym-recharge-header h3 {
    margin: 0 0 6px 0;
    color: #333;
}

.ym-recharge-tip {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #6b7280;
}

.ym-recharge-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.ym-recharge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

#ym-recharge-input {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 6px 8px;
    width: 160px;
}

.ym-recharge-value {
    font-weight: 700;
    color: #1f2937;
}

.ym-recharge-error {
    color: #e53935;
    font-size: 12px;
}

.ym-recharge-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.ym-recharge-actions .right-popup-btn.confirm {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #fff;
    border-color: #10b981;
}

.ym-recharge-actions .right-popup-btn.cancel {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.ym-recharge-actions .right-popup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
